@Override
    public boolean isHideEmptyMiddlePackages() {
      ProjectViewDirectoryHelper helper = getProjectViewDirectoryHelper();
      if (helper == null || !helper.supportsHideEmptyMiddlePackages()) return false;
      ProjectView view = getProjectView();
      return view != null && view.isHideEmptyMiddlePackages(getPaneID(view));
    }
@Override
    public boolean isHideEmptyMiddlePackages()