apply method Null safety
Returns all the elements in the given list that match this finder's pattern.
When implementing your own Finders that inherit directly from Finder, this is the main method to override. If your finder can efficiently be described just in terms of a predicate function, consider extending MatchFinder instead.
Implementation
Iterable<Element> apply(Iterable<Element> candidates);