def METHOD_NAME(self, extra: ExtraContainer):
    renamed = {
        path.replace(".yml", ".json").replace(".yaml", ".json"): item
        for path, item in extra.items()
        if path.endswith((".yml", ".yaml"))
    }
    extra.clear()
    extra.update(renamed)