@SuppressWarnings("unchecked")
    public B addTraits(Collection<? extends Trait> traitsToAdd) {
        for (Trait trait : traitsToAdd) {
            addTrait(trait);
        }
        return (B) this;
    }
Adds traits from an iterator to the shape builder, replacing any
conflicting traits.

@param traitsToAdd Sequence of traits to add to the builder.
@return Returns the builder.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/AbstractShapeBuilder.java