EditorHighlighter (@NotNull PsiElement element) { EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme(); Project project = element.getProject(); VirtualFile virtualFile = element.getContainingFile().getVirtualFile(); return HighlighterFactory.createHighlighter(virtualFile, scheme, project); }