@Override
    public void write(DocWriter writer, String previousText, ShapeSubheadingSection section) {
        var trait = section.shape().getMemberTrait(section.context().model(), DeprecatedTrait.class).get();
        writer.putContext("since", trait.getSince());
        writer.openAdmonition(NoticeType.WARNING, w -> {
            w.write("Deprecated${?since} since ${since:L}${/since}");
        });
        writer.putContext("message", trait.getMessage());
        writer.write("""
                ${?message}${message:L}${/message}
                ${^message}This has been deprecated${?since} since version ${since:L}${/since}.${/message}
                """);
        writer.closeAdmonition();
        writer.writeWithNoFormatting(previousText);
    }
Adds deprecation warnings to shape docs.
smithy-docgen/src/main/java/software/amazon/smithy/docgen/interceptors/DeprecatedInterceptor.java