def METHOD_NAME(self, context):
    request = context.scene.sv_add_node_panel_settings.node_search
    if not request:
        AddNodeToolPanel._categories = dict()
        return
    categories = defaultdict(list)
    for cat in sm.get_add_node_menu().walk_categories():
        for add_node in cat:
            if not isinstance(add_node, sm.AddNode):
                continue
            if add_node.search_match(request):
                categories[cat].append(add_node)
    AddNodeToolPanel._categories = categories