@Override
            public void write(W writer, String previousText, CodeSection section) {
                consumer.accept(writer, previousText);
            }
Creates an interceptor that  works with any type of CodeSection and is filtered
only by the name of the section.

@param sectionName The name of the section to intercept.
@param consumer A consumer to invoke for intercepted sections that accepts the writer and previous text.
@param <W> The type of code writer being used.
@return Returns the created interceptor.
smithy-utils/src/main/java/software/amazon/smithy/utils/CodeInterceptor.java