presto-spi/src/main/java/io/prestosql/spi/eventlistener/QueryMetadata.java/QueryMetadata/QueryMetadata
class QueryMetadata:    public QueryMetadata(
            String queryId,
            Optional<String> transactionId,
            String query,
            Optional<String> preparedQuery,
            String queryState,
            URI uri,
            Optional<String> plan,
            Optional<String> payload)
    {
        this.queryId = requireNonNull(queryId, "queryId is null");
        this.transactionId = requireNonNull(transactionId, "transactionId is null");
        this.query = requireNonNull(query, "query is null");
        this.preparedQuery = requireNonNull(preparedQuery, "preparedQuery is null");
        this.queryState = requireNonNull(queryState, "queryState is null");
        this.uri = requireNonNull(uri, "uri is null");
        this.plan = requireNonNull(plan, "plan is null");
        this.payload = requireNonNull(payload, "payload is null");
    }