@Override
    public void write(TraitCodegenWriter writer, String previousText, JavaDocSection section) {
        if (!previousText.isEmpty()) {
            writer.writeDocString(previousText);
        }
    }
Formats any populated Javadoc comment sections as documentation comments.

<p>This interceptor will run after all other Javadoc interceptors to ensure it picks up all content
added to Jav doc sections. Javadoc sections with no content are discarded.
smithy-trait-codegen/src/main/java/software/amazon/smithy/traitcodegen/integrations/core/JavadocFormatterInterceptor.java