@SuppressWarnings("unchecked")
    private String interceptSection(State popped, CodeInterceptor<CodeSection, T> interceptor, String previous) {
        return expandSection(new AnonymousCodeSection("__" + popped.getSectionName()), previous, interceptorToCall -> {
            interceptor.write((T) this, previous, popped.sectionValue);
        });
    }
Pops the current AbstractCodeWriter state from the state stack.

<p>This method is used to reverse a previous {@link #pushState}
operation. It configures the current AbstractCodeWriter state to what it was
before the last preceding {@code pushState} call.

@return Returns self.
@throws IllegalStateException if there a no states to pop.
smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java