def METHOD_NAME(cls, forward_or_reverse_type):
    for fwd, rev in cls.types:
        if fwd == forward_or_reverse_type:
            return rev
        if rev == forward_or_reverse_type:
            return fwd