code: public void setLinkWithSitesTreeSelection(boolean enabled) {
          linkWithSitesTreeButton.setSelected(enabled);
          if (enabled) {
              extension.setShowJustInScope(false);
              final JTree sitesTree = view.getSiteTreePanel().getTreeSite();
              final TreePath selectionPath = sitesTree.getSelectionPath();
              getTreeAlert().setModel(getLinkWithSitesTreeModel());
              if (selectionPath != null) {
                  recreateLinkWithSitesTreeModel((SiteNode) selectionPath.getLastPathComponent());
              }
              sitesTree.addTreeSelectionListener(getLinkWithSitesTreeSelectionListener());
          } else {
              extension.setMainTreeModel();
              ((AlertNode) getLinkWithSitesTreeModel().getRoot()).removeAllChildren();
              view.getSiteTreePanel().getTreeSite().removeTreeSelectionListener(getLinkWithSitesTreeSelectionListener());
          }
      }
docs: Sets whether the "Alerts" tree is filtered, or not based on a selected "Sites" tree node.
  <p>
  If {@code enabled} is {@code true} only the alerts of the selected "Sites" tree node will be shown.
  </p>
  <p>
  Calling this method removes the filter "Just in Scope", if enabled, as they are mutually exclusive.
  </p>
  
  @param enabled {@code true} if the "Alerts" tree should be filtered based on the "Sites" tree selection, {@code false}
  otherwise.
  @see ExtensionAlert#setShowJustInScope(boolean)