docs: def on_close_shortcut(self, *args):
          """Close selected state machine (triggered by shortcut)"""
          state_machine_m = self.model.get_selected_state_machine_model()
          if state_machine_m is None:
              return
          self.on_close_clicked(None, state_machine_m, None, force=False)