@Override
    public void prepend(TraitCodegenWriter writer, CodeSection section) {
        Shape shape;
        if (section instanceof ClassSection) {
            shape = ((ClassSection) section).shape();
        } else if (section instanceof GetterSection) {
            shape = ((GetterSection) section).shape();
        } else if (section instanceof EnumVariantSection) {
            shape = ((EnumVariantSection) section).memberShape();
        } else {
            throw new IllegalArgumentException("Javadocs cannot be injected for section: " + section);
        }

        writer.injectSection(new JavaDocSection(shape));
    }
Adds a javadoc section to classes, getters, and enum variants.

<p>The injected javadoc section does not contain any javadoc contents when it is first injected. This
section is instead populated by other {@code CodeInterceptors} that trigger off of specific traits.
Note: This interceptor will also add any relevant documentation annotations to classes, getters, or enum variants.
smithy-trait-codegen/src/main/java/software/amazon/smithy/traitcodegen/integrations/javadoc/JavaDocInjectorInterceptor.java