android/guava/src/com/google/common/collect/ImmutableList.java
@Beta
  public static <E> Builder<E> builderWithExpectedSize(int expectedSize) {
    checkNonnegative(expectedSize, "expectedSize");
    return new ImmutableList.Builder<E>(expectedSize);
  }
@Beta
  public static <E> Builder<E> builderWithExpectedSize(int expectedSize) {
    checkNonnegative(expectedSize, "expectedSize");
    return new ImmutableList.Builder<E>(expectedSize);
  }
Returns a new builder, expecting the specified number of elements to be added.

<p>If {@code expectedSize} is exactly the number of elements added to the builder before {@link
Builder#build} is called, the builder is likely to perform better than an unsized {@link
#builder()} would have.

<p>It is not specified if any performance benefits apply if {@code expectedSize} is close to,
but not exactly, the number of elements added to the builder.

@since 23.1