def METHOD_NAME(node: Node):
    nonlocal docs
    if isinstance(node.details, Group):
        group = ParsedGroup(node.name, node.details.group_description)
        parent = typing.cast(ParsedGroup, docs[node.json_path])
        parent.sub_groups.append(group)
        docs[f'{node.json_path}.{node.name}'] = group
    else:
        parent = typing.cast(ParsedGroup, docs[node.json_path])
        getter_method_specs.append(
            GetterMethodSpec(node.name, node.details))
        parent.variables[node.name] = node.details