<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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 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