public void setValidation(@Nullable Function<? super Settings, List<ValidationInfo>> validation) {
    myValidation.clear();
    if (validation != null) {
      myValidation.add(validation);
    }
  }
public void setValidation(@Nullable Function<? super Settings, List<ValidationInfo>> validation)