private MenuManager getMenuManager(DockingActionIf action) {
		MenuData menuBarData = action.getMenuBarData();
		if (menuBarData == null) {
			return null;
		}

		String[] menuPath = menuBarData.getMenuPath();
		if (menuPath == null || menuPath.length <= 1) {
			return null;
		}

		return getMenuManager(menuPath[0]);
	}
Adds an action to the menu
@param action the action to be added
Ghidra/Framework/Docking/src/main/java/docking/menu/MenuBarManager.java