def METHOD_NAME(self, name, setting, settings) -> None:
    if "children" in setting:
        for childname, child in setting["children"].items():
            self.METHOD_NAME(childname, child, settings)
    settings |= {name: setting}