private @Nullable FileEditor getLastFocusedEditor() {
    FileEditor result = null;
    var fileEditorManager = FileEditorManager.getInstance(project);
    if (fileEditorManager instanceof FileEditorManagerImpl fileEditorManagerImpl) {
      result = fileEditorManagerImpl.getLastFocusedEditor();
    }
    if (result != null) {
      if (SelectInProjectViewImplKt.getLOG().isDebugEnabled()) {
        SelectInProjectViewImplKt.getLOG().debug(
          "Forcing use of the last focused editor to select opened file: " + result
        );
      }
    }
    return result;
  }
private @Nullable FileEditor getLastFocusedEditor()