docs: def _data_ports_changed(self, model):
          """Reload list store and reminds selection when the model was changed"""
          if not isinstance(model, AbstractStateModel):
              return
          # store port selection
          path_list = None
          if self.view is not None:
              model, path_list = self.tree_view.get_selection().get_selected_rows()
          selected_data_port_ids = [self.list_store[path[0]][self.ID_STORAGE_ID] for path in path_list] if path_list else []
          self._reload_data_port_list_store()
          # recover port selection
          if selected_data_port_ids:
              [self.select_entry(selected_data_port_id, False) for selected_data_port_id in selected_data_port_ids]