def METHOD_NAME(self):
    """
    Internal method to allow plugins to add menus to the main menu bar.
    """
    menubar = self.menuBar()
    menubar.setNativeMenuBar(False)
    peacock_menu = menubar.addMenu("Peacock")
    WidgetUtils.addAction(peacock_menu, "View Log", self._showLog, "Ctrl+L", True)
    WidgetUtils.addAction(peacock_menu, "Preferences", self._showPreferences)
    WidgetUtils.addAction(peacock_menu, "E&xit", self.close, "Ctrl+Q", True)
    for name, plugin in self.tab_plugin._plugins.items():
        plugin.addToMainMenu(menubar)