private boolean isWeightedsetOfPrimitiveType(DataType type) {
        if (type instanceof WeightedSetDataType) {
            var wsetType = (WeightedSetDataType) type;
            return ComplexAttributeFieldUtils.isPrimitiveType(wsetType.getNestedType());
        }
        return false;
    }
Iterates all summary fields with 'matched-elements-only' or 'select-elements-by' and validates that the field type is supported.

@author geirst
config-model/src/main/java/com/yahoo/schema/processing/SummaryElementsSelectorValidator.java