code: @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;
      }
docs: Parses the returned files from a filepicker activity into a nice list
  
  @param data returned by the {@link AbstractFilePickerActivity}
  @return a {@link List<Uri>} of files (uris) which the user selected in the picker.