def METHOD_NAME(self, otherState):
    if self.transitionsToAny():
        return 1
    # if we're given a state object, get its name instead
    if not isinstance(otherState, str):
        otherState = otherState.getName()
    return otherState in self.__transitions