private void copyStateFrom(State copy) {
            this.newline = copy.newline;
            this.expressionStart = copy.expressionStart;
            this.indentText = copy.indentText;
            this.leadingIndentString = copy.leadingIndentString;
            this.indentation = copy.indentation;
            this.newlinePrefix = copy.newlinePrefix;
            this.trimTrailingSpaces = copy.trimTrailingSpaces;
            this.disableNewline = copy.disableNewline;
            this.needsIndentation = copy.needsIndentation;
        }
Inline states are created when formatting text. They aren't written
directly to the AbstractCodeWriter, but rather captured as part of the
process of expanding a template argument.
smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java