public static File getFile(Context context, Uri uri) {
        if (uri != null) {
            String path = getPath(context, uri);
            if (path != null && isLocal(path)) {
                return new File(path);
            }
        }
        return null;
    }
Convert Uri into File, if possible.

@return file A local file that the Uri was pointing to, or null if the
Uri is unsupported or pointed to a remote resource.
@author paulburke
@see #getPath(Context, Uri)
android/modules/module_common/src/main/java/github/tornaco/android/thanos/util/AndroidFileUtils.java