@Override
    public void setSelected(boolean selected) {
      if (project.isDisposed()) return;
      currentState.setOpenDirectoriesWithSingleClick(selected);
      getDefaultState().setOpenDirectoriesWithSingleClick(selected);
      getGlobalOptions().setOpenDirectoriesWithSingleClick(selected);
      var pane = getCurrentProjectViewPane();
      if (pane != null) {
        var tree = pane.getTree();
        if (tree != null) {
          tree.setToggleClickCount(selected ? 1 : 2);
        }
      }
    }
@Override
    public void setSelected(boolean selected)