docs: public static <KeyType> int requiredBufferCapacity(
        KeySerde<KeyType> keySerde,
        AggregatorFactory[] aggregatorFactories
    )
    {
      int recordSize = keySerde.keySize();
      for (AggregatorFactory aggregatorFactory : aggregatorFactories) {
        recordSize += aggregatorFactory.getMaxIntermediateSizeWithNulls();
      }
      return recordSize * 3;
    }