code: private static int capacity(int expectedSize) {
  		if (expectedSize < 3) {
  			Preconditions.checkArgument(expectedSize >= 0);
  			return expectedSize + 1;
  		}
  		if (expectedSize < Ints.MAX_POWER_OF_TWO) {
  			return expectedSize + expectedSize / 3;
  		}
  		return Integer.MAX_VALUE; // any large value
  	}
docs: Copied from {@link Maps#capacity(int)}.