code: def getInspectorActionById(self, identifier):
          
          for action in self.inspectorActionGroup.actions():
              if action.data() == identifier:
                  return action
          raise KeyError("No action found with ID: {!r}".format(identifier))
docs: Sets the inspector and draw the contents
              Triggers the corresponding action so that it is checked in the menus.