void (@NotNull PsiFile file, MyInfo[] infos, @NotNull AnnotationHolder holder) { if (infos == null || infos.length == 0) { return; } final HighlightDisplayLevel displayLevel = getHighlightDisplayLevel(file); for (MyInfo info : infos) { if (!info.myResult) { final PsiElement element = info.myAnchor.retrieve(); if (element != null) { final int start = element.getTextRange().getStartOffset(); final TextRange range = new TextRange(start + info.myRangeInElement.getStartOffset(), start + info.myRangeInElement.getEndOffset()); final String message = getErrorMessage(info.myUrl); AnnotationBuilder builder = holder.newAnnotation(displayLevel.getSeverity(), message).range(range); for (IntentionAction action : getQuickFixes()) { builder = builder.withFix(action); } builder.create(); } } } }