code: private void setTreeModel(AlertTreeModel alertTreeModel) {
          if (getView() == null) {
              return;
          }
          getAlertPanel().getTreeAlert().setModel(alertTreeModel);
          recalcAlerts();
      }
docs: Sets the given {@code alertTreeModel} to the "Alerts" tree and recalculates the number of alerts by calling the method
  {@code recalcAlerts()}.
  
  @param alertTreeModel the model that will be set to the tree.
  @see #recalcAlerts()
  @see AlertPanel#getTreeAlert()