code: def _match_state(self, state):
          
          return (self.names == '*'
                  or state in self.names
                  or state.name in self.names)
docs: Checks whether a given State matches self.names.