presto-main/src/main/java/io/prestosql/util/StatementUtils.java/StatementUtils/getQueryType
class StatementUtils:    public static Optional<QueryType> getQueryType(Class<? extends Statement> statement)
    {
        return Optional.ofNullable(STATEMENT_QUERY_TYPES.get(statement));
    }