def METHOD_NAME(worker, profile_names, name_prefix):
    worker["name"] = name_prefix + worker["name"]
    for addon in worker["addons"]:
        args = addon["args"]
        for i, value in enumerate(args):
            if value in profile_names:
                args[i] = name_prefix + value