private Map<StringNode, Node> createIntroducedTraitsMap(Collection<Trait> traits) {
        if (traits.isEmpty()) {
            return Collections.emptyMap();
        } else {
            Map<StringNode, Node> traitsToAdd = new TreeMap<>();
            for (Trait trait : traits) {
                if (traitFilter.test(trait)) {
                    traitsToAdd.put(Node.from(trait.toShapeId().toString()), trait.toNode());
                }
            }
            return traitsToAdd;
        }
    }
Sets the IDL version to serialize. Defaults to 2.0.

<p>Version "1.0" serialization cannot be used with {@link #includePrelude}.

@param version IDL version to set. Can be "1", "1.0", "2", or "2.0".
               "1" and "2" are normalized to "1.0" and "2.0".
@return Returns the builder.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/ModelSerializer.java