private Icon getIcon(DockingActionIf action, String category) {
			ActionGroup group = ActionGroup.getActionByDisplayName(category);
			switch (group) {
				case LOCAL_TOOLBAR:
				case GLOBAL_TOOLBAR:
					ToolBarData toolBarData = action.getToolBarData();
					return toolBarData != null ? toolBarData.getIcon() : null;
				case LOCAL_MENU:
				case GLOBAL_MENU:
					MenuData menuBarData = action.getMenuBarData();
					return menuBarData != null ? menuBarData.getMenuIcon() : null;
				case POPUP:
					menuBarData = action.getPopupMenuData();
					return menuBarData != null ? menuBarData.getMenuIcon() : null;
				default:
					return null;
			}
		}
Class for actually invoking the selected action. Creating an instance of this class
causes a listener to be added for when focus changes. This is because we don't want
to invoke the selected action until after this dialog has finished closing and focus
has been returned to the original component that had focus before this dialog was invoked.
Ghidra/Framework/Docking/src/main/java/docking/actions/dialog/ActionChooserDialog.java