public void addAction(DockingActionIf action) {
		ToolBarData toolBarData = action.getToolBarData();
		if (toolBarData == null) {
			return;
		}

		toolBar = null; // invalidate the current toolbar

		String group = toolBarData.getToolBarGroup();
		List<ToolBarItemManager> items = groupToItemsMap.get(group);
		if (items == null) {
			items = new ArrayList<>();
			groupToItemsMap.put(group, items);
		}
		items.add(new ToolBarItemManager(action, windowManager));

		Collections.sort(items, toolBarItemComparator);
	}
Manages the actions to be displayed in the toolbar.  Organizes them by group.
Ghidra/Framework/Docking/src/main/java/docking/menu/ToolBarManager.java