public ImportResult copyWithBytes(Long bytes) {
    return new ImportResult(type, throwable, counts, Optional.ofNullable(bytes));
  }
Creates a shallow copy of the current ImportResult but with the bytes field set to the value
given as an argument
portability-spi-transfer/src/main/java/org/datatransferproject/spi/transfer/provider/ImportResult.java