TextEditorHighlightingPass (@NotNull PsiFile file, @NotNull Document document, @NotNull HighlightInfoProcessor highlightInfoProcessor) { TextRange textRange = file.getTextRange(); LOG.assertTrue(textRange != null, "textRange is null for " + file + " (" + PsiUtilCore.getVirtualFile(file) + ")"); return new MyLocalInspectionsPass(file, document, textRange, TextRange.EMPTY_RANGE, highlightInfoProcessor); }