private void writeNewline() {
            checkIndentationBeforeWriting();
            // Trim spaces before each newline. This only mutates the builder
            // if space trimming is enabled.
            trimSpaces();
            // Newlines are never split across writes, which could potentially cause
            // indentation logic to mess it up.
            getBuilder().append(newline);
            // The next appended character will get indentation and a
            // leading prefix string.
            needsIndentation = true;
        }
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