def METHOD_NAME(cls, target: Class, name: str, restrictions: Restrictions):
    types = AttrType(qname=name, native=False)
    attr = Attr(
        name=name, tag=Tag.ELEMENT, types=[types], restrictions=restrictions.clone()
    )
    attr.index = len(target.attrs)
    target.attrs.append(attr)