class ValueWithFailures implements ImmutableBean, Serializable {

  public static <T> ValueWithFailures<T> of(T successValue, FailureItem... failures) {
    return new ValueWithFailures<>(successValue, ImmutableList.copyOf(failures));
  }

  private  ValueWithFailures(
      T value,
      List<FailureItem> failures);

}