code: private void recreateLinkWithSitesTreeModel(SiteNode siteNode) {
          if (siteNode == null) {
              throw new IllegalArgumentException("Parameter siteNode must not be null.");
          }
          ((AlertNode) getLinkWithSitesTreeModel().getRoot()).removeAllChildren();
          if (siteNode.isRoot()) {
              getLinkWithSitesTreeModel().reload();
              extension.recalcAlerts();
              return;
          }
          String uri = null;
          HistoryReference historyReference = siteNode.getHistoryReference();
          if (historyReference != null) {
              uri = historyReference.getURI().toString();
          }
          for (Alert alert : siteNode.getAlerts()) {
              // Just show ones for this node
              if (uri != null && !alert.getUri().equals(uri)) {
                  continue;
              }
              getLinkWithSitesTreeModel().addPath(alert);
          }
  
          getLinkWithSitesTreeModel().reload();
          expandRootChildNodes();
          extension.recalcAlerts();
      }
docs: Recreates the {@code linkWithSitesTreeModel} with the alerts of the given {@code siteNode}.
  <p>
  If the given {@code siteNode} doesn't contain any alerts the resulting model will only contain the root node, otherwise
  the model will contain the root node and the alerts returned by the method {@code SiteNode#getAlerts()} although if the
  node has an HistoryReference only the alerts whose URI is equal to the URI returned by the method
  {@code HistoryReference#getURI()} will be included.
  </p>
  <p>
  After a call to this method the number of total alerts will be recalculated by calling the method
  {@code ExtensionAlert#recalcAlerts()}.
  </p>
  
  @param siteNode the "Sites" tree node that will be used to recreate the alerts tree model.
  @throws IllegalArgumentException if {@code siteNode} is {@code null}.
  @see #linkWithSitesTreeModel
  @see #setLinkWithSitesTreeSelection
  @see Alert
  @see ExtensionAlert#recalcAlerts()
  @see HistoryReference
  @see SiteNode#getAlerts()