void (@NotNull PsiFile file, List<HighlightRange> ranges, @NotNull AnnotationHolder holder) { for (HighlightRange range : ranges) { if (range.getStyleClass().equals("error")) { holder.newSilentAnnotation(HighlightSeverity.ERROR).range(range.getTextRange()).create(); } else { holder.newSilentAnnotation(HighlightSeverity.INFORMATION).range(range.getTextRange()) .enforcedTextAttributes(range.getTextAttributes()).create(); } } }