public boolean isTraitApplied(Class<? extends Trait> trait) {
        return !getShapesWithTrait(trait).isEmpty();
    }
Returns true if the given trait shape ID was used in the model.

@param trait The trait class to check.
@return Returns true if the trait was used in the model.
smithy-model/src/main/java/software/amazon/smithy/model/Model.java