@Nullable
  private static List<String> validateForTransport(@Nullable Bundle extras) {
    if (extras == null) {
      return null;
    }

    int bundleSizeInBytes = measureBundleSize(extras);
    if (bundleSizeInBytes > MAX_EXTRAS_SIZE_BYTES) {
      return getMutableSingletonList(
          String.format(
              Locale.US,
              "Extras too large: %d bytes is > the max (%d bytes)",
              bundleSizeInBytes,
              MAX_EXTRAS_SIZE_BYTES));
    }

    return null;
  }
Attempts to validate the provided RetryStrategy. If valid, null is returned. Otherwise a list
of errors will be returned.
jobdispatcher/src/main/java/com/firebase/jobdispatcher/DefaultJobValidator.java