docs: def update_recently_opened_state_machines_with(self, state_machine):
          """ Update recently opened list with file system path of handed state machine model
  
          The inserts handed state machine file system path into the recent opened state machines or moves it to be the
          first element in the list.
  
          :param rafcon.core.state_machine.StateMachine state_machine: State machine to check
          :return:
          """
          if state_machine.file_system_path:
              # check if path is in recent path already
              # logger.info("update recent state machine: {}".format(sm.file_system_path))
              recently_opened_state_machines = self.get_config_value('recently_opened_state_machines', [])
              if state_machine.file_system_path in recently_opened_state_machines:
                  del recently_opened_state_machines[recently_opened_state_machines.index(state_machine.file_system_path)]
              recently_opened_state_machines.insert(0, state_machine.file_system_path)
              self.set_config_value('recently_opened_state_machines', recently_opened_state_machines)