code: public static <T extends NamedElement> ElementMatcher.Junction<T> nameMatches(String regex) {
          return new NameMatcher<T>(new StringMatcher(regex, StringMatcher.Mode.MATCHES));
      }
docs: Matches a {@link NamedElement} name against a regular expression.
  
  @param regex The regular expression to match the name against.
  @param <T>   The type of the matched object.
  @return An element matcher for a named element's name's against the given regular expression.