docs: public void setGroupList(CmsPublishGroupList groups, boolean newData, String defaultWorkflow) {
  
          if (groups.getToken() == null) {
              setGroups(groups.getGroups(), newData, defaultWorkflow);
              setShowResources(true, "");
          } else {
              setShowResources(false, groups.getTooManyResourcesMessage());
          }
          boolean isDirectPublish = m_publishDialog.getPublishOptions().getProjectId().equals(m_directPublishId);
          m_checkboxAddContents.setVisible(isDirectPublish);
      }