@Override
    public void write(TraitCodegenWriter writer, String previousText, JavaDocSection section) {
        writer.write(section.shape().expectTrait(DocumentationTrait.class).getValue());

        if (!previousText.isEmpty()) {
            // Add spacing if tags have been added to the javadoc
            writer.newLine();
            writer.writeInlineWithNoFormatting(previousText);
        }
    }
Adds Javadoc documentation for the {@link DocumentationTrait}.

<p>The documentation trait contents are added as the contents of the Javadoc section.
smithy-trait-codegen/src/main/java/software/amazon/smithy/traitcodegen/integrations/javadoc/DocumentationTraitInterceptor.java