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