@NonNull
    public static List<Uri> getSelectedFilesFromResult(@NonNull Intent data) {
        List<Uri> result = new ArrayList<>();
        if (data.getBooleanExtra(EXTRA_ALLOW_MULTIPLE, false)) {
            List<String> paths = data.getStringArrayListExtra(EXTRA_PATHS);
            if (paths != null) {
                for (String path : paths) {
                    result.add(Uri.parse(path));
                }
            }
        } else {
            result.add(data.getData());
        }
        return result;
    }
Parses the returned files from a filepicker activity into a nice list

@param data returned by the {@link AbsFilePickerActivity}
@return a {@link List<Uri>} of files (uris) which the user selected in the picker.
android/modules/module_filepicker/src/main/java/com/nononsenseapps/filepicker/Utils.java