private void ensureNotFrozen() {
        if (frozen)
            throw new IllegalStateException(this + " is frozen");
    }
Throws IllegalStateException if this is frozen. Does nothing otherwise
searchlib/src/main/java/com/yahoo/searchlib/ranking/features/fieldmatch/FieldMatchMetricsParameters.java