public JMenuBar getMenuBar() {
		MenuManager fileMenu = menuManagers.get("File");
		MenuManager editMenu = menuManagers.get("Edit");
		MenuManager windowMenu = menuManagers.get("Window");
		MenuManager helpMenu = menuManagers.get("Help");

		JMenuBar menuBar = new JMenuBar();
		if (fileMenu != null) {
			menuBar.add(fileMenu.getMenu());
		}
		if (editMenu != null) {
			menuBar.add(editMenu.getMenu());
		}

		Iterator<MenuManager> it = menuManagers.values().iterator();
		while (it.hasNext()) {
			MenuManager mgr = it.next();
			if (mgr != fileMenu && mgr != editMenu && mgr != windowMenu && mgr != helpMenu) {

				menuBar.add(mgr.getMenu());
			}
		}

		if (windowMenu != null) {
			menuBar.add(windowMenu.getMenu());
		}
		if (helpMenu != null) {
			menuBar.add(helpMenu.getMenu());
		}

		return menuBar;
	}
Returns the menu manager for the given menu name.
@param menuName the name of the menu the be retrieved.
@return the MenuManager for the named menu.
Ghidra/Framework/Docking/src/main/java/docking/menu/MenuBarManager.java