presto-jdbc/src/main/java/io/prestosql/jdbc/PrestoStatement.java/PrestoStatement/isClosed
class PrestoStatement:    @Override
    public boolean isClosed()
            throws SQLException
    {
        return connection.get() == null;
    }