boolean (int group, @NotNull PsiFile psiFile) { ApplicationManager.getApplication().assertReadAccessAllowed(); assertMyFile(psiFile.getProject(), psiFile); VirtualFile vFile = BackedVirtualFile.getOriginFileIfBacked(psiFile.getViewProvider().getVirtualFile()); for (FileEditor fileEditor : getFileEditorManager().getAllEditors(vFile)) { List<HighlightInfo> infos = fileEditor.getUserData(FILE_LEVEL_HIGHLIGHTS); if (infos != null && !infos.isEmpty()) { for (HighlightInfo info : infos) { if (info.getGroup() == group || group == ANY_GROUP) { return true; } } } } return false; }