boolean (@NotNull Project project, Editor editor, PsiFile file) { if (editor == null) return false; if (!EditorUtil.isRealFileEditor(editor)) return false; return !EditorUtil.getSelectionInAnyMode(editor).isEmpty(); }