code: private void onValidity(String paramString, boolean checkValidity, SingularAttribute<? super X, ?> attribute)
      {
          if (checkValidity)
          {
              checkForValid(paramString, attribute);
  
          }
      }
docs: On validity check.
  
  @param paramString
  the param string
  @param checkValidity
  the check validity
  @param attribute
  the attribute