public void setInterceptors(List<? extends CodeInterceptor<? extends CodeSection, W>> interceptors) {
        this.interceptors.clear();
        this.interceptors.addAll(interceptors);
    }
Sets the list of code interceptors to registered with each newly created writer.

@param interceptors Interceptors to register.
smithy-codegen-core/src/main/java/software/amazon/smithy/codegen/core/WriterDelegator.java