def addInspectorActionsToMenu(inspectorMenu, execInspectorDialogAction,
    inspectorActionGroup):
    """ Adds menu items to the inpsectorMenu for the given set-inspector actions.

        :param inspectorMenu: inspector menu that will be modified
        :param execInspectorDialogAction: the "Browse Inspectors..." actions
        :param inspectorActionGroup: action group with actions for selecting a new inspector
        :return: the inspectorMenu, which has been modified.
    """
    inspectorMenu.addAction(execInspectorDialogAction)
    inspectorMenu.addSeparator()
    for action in inspectorActionGroup.actions():
        inspectorMenu.addAction(action)
    return inspectorMenu
