boolean (@Nullable HighlightInfo info) { if (super.add(info)) { if (info != null && info.getSeverity() == HighlightSeverity.ERROR) { final int startOffset = info.getStartOffset(); final PsiElement element = holder.getFile().findElementAt(startOffset); if (element != null) { holder.registerProblem(element, info.getDescription()); } } return true; } return false; }