presto-main/src/main/java/io/prestosql/util/AutoCloseableCloser.java/AutoCloseableCloser/register
class AutoCloseableCloser:    public <C extends AutoCloseable> C register(C closeable)
    {
        requireNonNull(closeable, "closeable is null");
        stack.addFirst(closeable);
        return closeable;
    }