def METHOD_NAME(onload):
    if onload:
        other = onload_files
    else:
        other = kernel_files
    for tree,files in (list(common_files.items()) + list(other.items())):
        for f in files: yield tree,f