docs: protected void setGroups(List<CmsPublishGroup> groups, boolean newData) {
  
          m_model = new CmsPublishDataModel(groups, this);
          m_model.setSelectionChangeAction(new Runnable() {
  
              public void run() {
  
                  onChangePublishSelection();
              }
          });
          m_currentGroupIndex = 0;
          m_currentGroupPanel = null;
          m_problemsPanel.clear();
          if (newData) {
              m_showProblemsOnly = false;
              m_checkboxProblems.setChecked(false);
              m_checkboxProblems.setVisible(false);
              m_problemsPanel.setVisible(false);
          }
          m_groupPanels.clear();
          m_groupPanelContainer.clear();
          m_scrollPanel.onResizeDescendant();
          enableActions(false);
  
          int numGroups = groups.size();
          setResourcesVisible(numGroups > 0);
  
          if (numGroups == 0) {
              return;
          }
          enableActions(true);
          addMoreListItems();
          showProblemCount(m_model.countProblems());
      }