boolean (@NotNull Editor editor) { Project editorProject = editor.getProject(); return editorProject != null && !editorProject.isDisposed() && !editor.isDisposed() && UIUtil.isShowing(editor.getContentComponent()); }