def METHOD_NAME(name, *args, **kwargs):
    record = old_factory(name, *args, **kwargs)
    if name.startswith('sverchok'):
        path = Path(record.pathname)
        # search root path of the add-on
        for root in path.parents:
            if root.parent.name == 'addons':  # add-ons are not always in the folder
                break
        else:
            root = None
        if root is not None:
            record.relative_path = path.relative_to(root)
        else:  # it can if there is several instances of sverchok (as add-on and a separate folder)
            record.relative_path = path
    return record