static boolean matchesTraitDefinition(Shape traitShape, Set<ShapeId> traitNames, Set<String> traitNamespaces) {
        return traitNames.contains(traitShape.getId()) || traitNamespaces.contains(traitShape.getId().getNamespace());
    }
Utilities for {@link IncludeTraits} and {@link ExcludeTraits}.
smithy-build/src/main/java/software/amazon/smithy/build/transforms/TraitRemovalUtils.java