docs: private Set<Alert> getSelectedAlertsImpl(boolean allAlerts) {
  		TreePath[] paths = getTreeAlert().getSelectionPaths();
  		if (paths == null || paths.length == 0) {
  			return Collections.emptySet();
  		}
  
  		Set<Alert> alerts = new HashSet<>();
  		if (!allAlerts) {
  			DefaultMutableTreeNode alertNode = (DefaultMutableTreeNode) paths[0].getLastPathComponent();
  			alerts.add((Alert) alertNode.getUserObject());
  			return alerts;
  		}
  
  		for (int i = 0; i < paths.length; i++) {
  			DefaultMutableTreeNode alertNode = (DefaultMutableTreeNode) paths[i].getLastPathComponent();
  			if (alertNode.getChildCount() == 0) {
  				alerts.add((Alert) alertNode.getUserObject());
  				continue;
  			}
  			for (int j = 0; j < alertNode.getChildCount(); j++) {
  				DefaultMutableTreeNode node = (DefaultMutableTreeNode) alertNode.getChildAt(j);
  				alerts.add((Alert) node.getUserObject());
  			}
  		}
  		return alerts;
  	}