void (@NotNull PresentationData presentation) { final Collection<ArtifactProblemDescription> problems = ((ArtifactEditorImpl)myContext.getThisArtifactEditor()).getValidationManager().getProblems(this); if (problems == null || problems.isEmpty()) { super.update(presentation); return; } StringBuilder buffer = new StringBuilder(); boolean isError = false; for (ArtifactProblemDescription problem : problems) { isError |= problem.getSeverity() == ProjectStructureProblemType.Severity.ERROR; buffer.append(problem.getMessage(false)).append("<br>"); } final String tooltip = XmlStringUtil.wrapInHtml(buffer); getElementPresentation().render(presentation, addErrorHighlighting(isError, SimpleTextAttributes.REGULAR_ATTRIBUTES), addErrorHighlighting(isError, SimpleTextAttributes.GRAY_ATTRIBUTES)); presentation.setTooltip(tooltip); }