presto-main/src/main/java/io/prestosql/operator/aggregation/state/MinMaxNStateFactory.java/GroupedMinMaxNState/setTypedHeap
class GroupedMinMaxNState:        @Override
        public void setTypedHeap(TypedHeap value)
        {
            TypedHeap previous = getTypedHeap();
            if (previous != null) {
                size -= previous.getEstimatedSize();
            }
            heaps.set(getGroupId(), value);
            size += value.getEstimatedSize();
        }