public boolean isTraitAdded(ShapeId trait) {
        return !oldShape.hasTrait(trait) && newShape.hasTrait(trait);
    }
Checks if the trait was added.

@param trait Trait to check.
@return Returns true if the trait was added.
smithy-diff/src/main/java/software/amazon/smithy/diff/ChangedShape.java