def METHOD_NAME(x):
    if x[0].startswith('share/icons/Adwaita'):
        return ('/places' in x[0]) \
            or (os.path.splitext(os.path.basename(x[0]))[0] in icon_names)
    elif x[0].startswith('share/locale'):
        dirs = os.path.normpath(x[0]).split(os.path.sep)
        return (len(dirs) < 3) or (dirs[2] in translations)
    return True