Returns the QueryType to use, using a default value
static QueryType getQueryType(final QueryType? queryType) => queryType ?? globalQueryType;