@Override
    public boolean isIntercepted(CodeSection section) {
        if (section instanceof ClassSection) {
            return ((ClassSection) section).shape().hasTrait(DeprecatedTrait.ID);
        } else if (section instanceof GetterSection) {
            return ((GetterSection) section).shape().hasTrait(DeprecatedTrait.ID);
        } else if (section instanceof EnumVariantSection) {
            return ((EnumVariantSection) section).memberShape().hasTrait(DeprecatedTrait.ID);
        }
        return false;
    }
Adds the {@link Deprecated} annotation to generated code for shapes with the {@link DeprecatedTrait}.
smithy-trait-codegen/src/main/java/software/amazon/smithy/traitcodegen/integrations/annotations/DeprecatedAnnotationInterceptor.java