@VisibleForTesting
  @Nullable
  GoogleMediaItem getGoogleMediaItem(String photoIdempotentId, String photoDataId,
      String photoName, TokensAndUrlAuthData authData) throws IOException, InvalidTokenException, PermissionDeniedException {
    if (retryingExecutor == null || !enableRetrying) {
      return getOrCreatePhotosInterface(authData).getMediaItem(photoDataId);
    }

    try {
      GoogleMediaItem googleMediaItem = retryingExecutor.executeAndSwallowIOExceptions(
          photoIdempotentId, photoName,
          () -> getOrCreatePhotosInterface(authData).getMediaItem(photoDataId)
      );
      return googleMediaItem;
    } catch (Exception e) {
      monitor.info(() -> format("Retry exception encountered while fetching a photo: %s", e));
    }
    return null;
  }
Method for storing a list of all photos that are already contained in albums
extensions/data-transfer/portability-data-transfer-google/src/main/java/org/datatransferproject/datatransfer/google/media/GoogleMediaExporter.java