def METHOD_NAME(cls, variant):
    if variant == cls.LEFT_TO_RIGHT:
        return cls.RIGHT_TO_LEFT
    elif variant == cls.RIGHT_TO_LEFT:
        return cls.LEFT_TO_RIGHT
    elif variant == cls.TOP_TO_BOTTOM:
        return cls.BOTTOM_TO_TOP
    elif variant == cls.BOTTOM_TO_TOP:
        return cls.TOP_TO_BOTTOM
    else:
        return None