code: static StringBuilder newStringBuilderForCollection(int size) {
      checkNonnegative(size, "size");
      return new StringBuilder((int) Math.min(size * 8L, Ints.MAX_POWER_OF_TWO));
    }
docs: Returns best-effort-sized StringBuilder based on the given collection size.