<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _match_transition(self, transition):
 """Checks whether a given Transition matches self.names."""

        return (self.names == '*'
                or transition in self.names
                or transition.name in self.names)