docs: def on_to_state_edited(self, renderer, path, new_state_identifier):
          """Connects the outcome with a transition to the newly set state
  
          :param Gtk.CellRendererText renderer: The cell renderer that was edited
          :param str path: The path string of the renderer
          :param str new_state_identifier: An identifier for the new state that was selected
          """
          def do_self_transition_check(t_id, new_state_identifier):
              # add self transition meta data
              if 'self' in new_state_identifier.split('.'):
                  insert_self_transition_meta_data(self.model, t_id, 'outcomes_widget', combined_action=True)
  
          outcome_id = self.list_store[path][self.ID_STORAGE_ID]
          if outcome_id in self.dict_to_other_state or outcome_id in self.dict_to_other_outcome:
              transition_parent_state = self.model.parent.state
              if outcome_id in self.dict_to_other_state:
                  t_id = self.dict_to_other_state[outcome_id][2]
              else:
                  t_id = self.dict_to_other_outcome[outcome_id][2]
              if new_state_identifier is not None:
                  to_state_id = new_state_identifier.split('.')[1]
                  if not transition_parent_state.transitions[t_id].to_state == to_state_id:
                      try:
                          transition_parent_state.transitions[t_id].modify_target(to_state=to_state_id)
                          do_self_transition_check(t_id, new_state_identifier)
                      except ValueError as e:
                          logger.warning("The target of transition couldn't be modified: {0}".format(e))
              else:
                  try:
                      transition_parent_state.remove_transition(t_id)
                  except AttributeError as e:
                      logger.warning("The transition couldn't be removed: {0}".format(e))
          else:  # there is no transition till now
              if new_state_identifier is not None and not self.model.state.is_root_state:
                  transition_parent_state = self.model.parent.state
                  to_state_id = new_state_identifier.split('.')[1]
                  try:
                      t_id = transition_parent_state.add_transition(from_state_id=self.model.state.state_id,
                                                                    from_outcome=outcome_id,
                                                                    to_state_id=to_state_id,
                                                                    to_outcome=None, transition_id=None)
                      do_self_transition_check(t_id, new_state_identifier)
                  except (ValueError, TypeError) as e:
                      logger.warning("The transition couldn't be added: {0}".format(e))
                      return
              else:
                  logger.debug("outcome-editor got None in to_state-combo-change no transition is added")