code: def _match_transition(self, transition):
          
          return (self.names == '*'
                  or transition in self.names
                  or transition.name in self.names)
docs: Checks whether a given Transition matches self.names.