TextEditorHighlightingPass (@NotNull PsiFile file, @NotNull Editor editor) { PsiFile groovyFile = file.getViewProvider().getPsi(GroovyLanguage.INSTANCE); return groovyFile instanceof GroovyFileBase ? new GrReferenceHighlighter(file, (GroovyFileBase)groovyFile, editor.getDocument()) : null; }