docs: def show_content(self, state_model):
          """Check state machine tree specific show content flag.
  
          Is returning true if the upper most library state of a state model has a enabled show content flag or if there
          is no library root state above this state.
  
          :param rafcon.gui.models.abstract_state.AbstractStateModel state_model: The state model to check
          """
          upper_most_lib_state_m = None
          if isinstance(state_model, LibraryStateModel):
              uppermost_library_root_state = state_model.state.get_uppermost_library_root_state()
              if uppermost_library_root_state is None:
                  upper_most_lib_state_m = state_model
              else:
                  upper_lib_state = uppermost_library_root_state.parent
                  upper_most_lib_state_m = self._selected_sm_model.get_state_model_by_path(upper_lib_state.get_path())
          if upper_most_lib_state_m:
              return upper_most_lib_state_m.show_content()
          else:
              return True