public void validate() {
        if (tokenization == Tokenization.linguistics && syntax != Syntax.none)
            throw new IllegalArgumentException(this + " is invalid: Linguistics tokenization can only be combined with syntax none");
    }
Throws IllegalArgumentException if the combination of options set in this are ot supported.
container-search/src/main/java/com/yahoo/search/query/QueryType.java