'Returns generator with corrected commands.
:type command: Command
:rtype: Iterable[CorrectedCommand]'

def get_corrected_commands(self, command):

    new_commands = self.get_new_command(command)
    if (not isinstance(new_commands, list)):
        new_commands = (new_commands,)
    for (n, new_command) in enumerate(new_commands):
        (yield CorrectedCommand(script=new_command, side_effect=self.side_effect, priority=((n + 1) * self.priority)))
