docs: protected static boolean nameMatches(EObject element, String pattern) {
  		if (element instanceof RuleCall) {
  			return nameMatches(((RuleCall) element).getRule(), pattern);
  		}
  		if (element instanceof AbstractRule) {
  			final String name = ((AbstractRule) element).getName();
  			final Pattern compilerPattern = Pattern.compile(pattern);
  			final Matcher matcher = compilerPattern.matcher(name);
  			if (matcher.find()) {
  				return true;
  			}
  		}
  		return false;
  	}