def METHOD_NAME(export, props: PriorityPropDict, recurse=False):
    '''Restricted version of gather_properties that only act on a single export (and optionally its parents).'''
    if recurse:
        parent = ark.tree.get_parent_of_export(export)
        if parent:
            METHOD_NAME(parent, props, recurse=recurse)
    for prop in export.properties.values:
        propname = str(prop.header.name)
        if propname:
            propindex = prop.header.index or 0
            props[propname][propindex].append(prop.value)