presto-memory-context/src/main/java/io/prestosql/memory/context/AbstractAggregatedMemoryContext.java/AbstractAggregatedMemoryContext/addExact
class AbstractAggregatedMemoryContext:    static long addExact(long usedBytes, long bytes)
    {
        try {
            return Math.addExact(usedBytes, bytes);
        }
        catch (ArithmeticException e) {
            throw new RuntimeException(format("Overflow detected. usedBytes: %d, bytes: %d", usedBytes, bytes), e);
        }
    }