private static boolean matchesNames(String classFQName, String[] classPatterns) {
    for (String className : classPatterns) {
      if (className.equals(classFQName) || classFQName.startsWith(className) && classFQName.charAt(className.length()) == '$') {
        return true;
      }
    }
    return false;
  }
private static boolean matchesNames(String classFQName, String[] classPatterns)