boolean (String methodName, Set<String> myNames) { if (methodName == null) { return false; } if (myNames.contains(methodName)) { return true; } for (String updateName : myNames) { if (methodName.startsWith(updateName)) { return true; } } return false; }