@Override
    @SuppressWarnings("deprecation")
    public Optional<Trait> findTrait(ShapeId id) {
        if (id.equals(EnumTrait.ID)) {
            return super.findTrait(SyntheticEnumTrait.ID);
        }
        return super.findTrait(id);
    }
Gets the members of the shape, including mixin members.

@return Returns the immutable member map.
smithy-model/src/main/java/software/amazon/smithy/model/shapes/EnumShape.java