@Override
        default void write(W writer, String previousText, S section) {
            prepend(writer, section);
            if (!previousText.isEmpty()) {
                writer.writeInlineWithNoFormatting(previousText);
            }
        }
A code section interceptor that adds text before the intercepted section.

<p>The previously written text is only included if it's a non-empty string.

@param <S> The type of section to intercept.
@param <W> The type of code writer.
smithy-utils/src/main/java/software/amazon/smithy/utils/CodeInterceptor.java