`build_accordion_recursively` for the method name would be fine because there is an explanation as

    # Build the lists for the accordion recursively.