private boolean isSubMenu(MenuData menuData) {
		String[] actionMenuPath = menuData.getMenuPath();
		return actionMenuPath.length > level + 1;
	}
Adds an action to this menu. Can create subMenus depending on the menuPath of the action
@param action the action to be added
Ghidra/Framework/Docking/src/main/java/docking/menu/MenuManager.java