private void setValidationResult(ValidationResult result) {
    myLastValidationResult = result;
    if (myComponent != null && !isInplaceValidationSupported()) {
      myComponent.updateValidationResultVisibility(result);
    }
    for (ValidationListener listener : myValidationListeners) {
      listener.validationCompleted(result);
    }
  }
private void setValidationResult(ValidationResult result)