@Override
        public void write(DocWriter writer, String previousText, CapturingSection section) {
            contents = previousText;
            writer.writeWithNoFormatting(previousText);
        }
Records what was written to the section previously and writes it back.
smithy-docgen/src/main/java/software/amazon/smithy/docgen/generators/GeneratorUtils.java