guava/src/com/google/common/collect/MinMaxPriorityQueue.java
public static Builder<Comparable> expectedSize(int expectedSize) {
    return new Builder<Comparable>(Ordering.natural()).expectedSize(expectedSize);
  }
public static Builder<Comparable> expectedSize(int expectedSize) {
    return new Builder<Comparable>(Ordering.natural()).expectedSize(expectedSize);
  }
Creates and returns a new builder, configured to build {@code MinMaxPriorityQueue} instances
sized appropriately to hold {@code expectedSize} elements.