@classmethod
def get_title(cls, item):
    """Returns a title for a variant instance or it's value.

        :param item:
        :rtype: str
        """
    if isinstance(item, cls):
        return item.title
    return cls.titles[item]
