@SuppressWarnings("unchecked")
    public T dedent(int levels) {
        int adjusted = levels == -1 ? Integer.MIN_VALUE : -1 * levels;
        currentState.indent(adjusted, null);
        return (T) this;
    }
Removes a specific number of indentations from all lines.

<p>Set to -1 to dedent back to 0 (root).

@param levels Number of levels to remove.
@return Returns self.
@throws IllegalStateException when trying to dedent too far.
smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java