ValidationResult () { if (isModified()) { String text = ModificationOfImportedModelWarningComponent.getWarningText( JavaUiBundle.message("facet.banner.text", myContext.getFacetName()), externalSource); return new ValidationResult(text); } return ValidationResult.OK; }