public void setAllowedNames(@Nullable Collection<String> allowedNames) {
    if (allowedNames == null) {
      myAllowedNames = null;
    }
    else {
      myAllowedNames = new HashSet<>(allowedNames);
    }
  }
public void setAllowedNames(@Nullable Collection<String> allowedNames)