Editor (@NotNull OpenFileDescriptor descriptor) { if (descriptor.canNavigate()) { FileEditorManagerEx fileEditorManager = FileEditorManagerEx.getInstanceEx(descriptor.getProject()); boolean isEditorAreaFocused = IJSwingUtilities.hasFocus(fileEditorManager.getComponent()); return fileEditorManager.openTextEditor(descriptor, isEditorAreaFocused); } return null; }