getNestedOptionByDeclaredName

Deprecated

For removal, there can be one or more options with the provided name, prefer using collection operations on 'allOptions' instead, make an extension or an utility method

Returns the option with the supplied declared name (i.e., name of the method parameter), or null if not found.

Takes into account nested aggregations.