def METHOD_NAME(patches_config, mtime):
    mtime_cache = {}
    for file_path in patched_file_paths(patches_config):
        if file_path in mtime_cache:
            continue
        if not os.path.exists(file_path):
            print("Skipping non-existent file:", file_path)
            continue
        mtime_cache[file_path] = mtime
    for file_path in mtime_cache:
        os.utime(file_path, (mtime_cache[file_path], mtime_cache[file_path]))