@Override
    public void setSelected(boolean selected) {
      if (project.isDisposed()) {
        return;
      }

      boolean updated = selected != isSelected();
      currentState.setCompactDirectories(selected);
      getDefaultState().setCompactDirectories(selected);
      getGlobalOptions().setCompactDirectories(selected);
      if (updated) updatePanes(false);
    }
@Override
    public void setSelected(boolean selected)