boolean (@Nullable String name) { if (name == null) { return false; } if (mySeenNames.contains(name)) { return false; } if (myNameFilter != null && !myNameFilter.value(name)) { return false; } if (myAllowedNames != null && !myAllowedNames.contains(name)) { return false; } return true; }