void (String url, String pointer) { Set<String> newSet = myAdditionalPropertiesNotAllowedFor == null ? new HashSet<>() : new HashSet<>(myAdditionalPropertiesNotAllowedFor); newSet.add(url + pointer); myAdditionalPropertiesNotAllowedFor = newSet; }