private void showActionsDialog(Tool tool, DockingDialog dialog, ActionContext context) {
		DialogComponentProvider dialogProvider = dialog.getDialogComponent();

		// There is a special case when the active dialog is the ActionChooserDialog. 
		// Instead of popping up another ActionChooserDialog, we interpret this action's 
		// keybinding to mean to show even more actions in the current dialog.
		if (dialogProvider instanceof ActionChooserDialog actionsDialog) {
			ActionDisplayLevel level = actionsDialog.getActionDisplayLevel();
			actionsDialog.setActionDisplayLevel(level.getNextLevel());
			return;
		}

		ActionChooserDialog actionsDialog = new ActionChooserDialog(tool, dialogProvider, context);
		tool.showDialog(actionsDialog);
	}
Action for displaying the {@link ActionChooserDialog}. This action determines the focused 
{@link ComponentProvider} or {@link DialogComponentProvider} and displays the 
{@link ActionChooserDialog} with actions relevant to that focused component.
Ghidra/Framework/Docking/src/main/java/docking/action/ShowActionChooserDialogAction.java