@classmethod
def _get_mapping(cls, component):
    """Return a dict of attributes of a given component on the class"""
    mapping = {}
    for klass in cls.__mro__:
        for key, value in klass.__dict__.items():
            if isinstance(value, component):
                if key not in mapping:
                    mapping[key] = value.name
    return mapping
