TextEditorHighlightingPass (@NotNull PsiFile file, @NotNull final Editor editor) { final VirtualFile virtualFile = file.getVirtualFile(); if (virtualFile != null) { Project project = file.getProject(); Document document = file.getViewProvider().getDocument(); if (isSupported(virtualFile, project) && document != null) { return new TestDataHighlightingPass(project, document); } } return null; }