matches method
Returns true if the given element matches the pattern.
When implementing a MatchFinder, this is the main method to override.
Implementation
@override
bool matches(Element candidate) {
return (finder as MatchFinder).matches(candidate);
}