public final void decreaseNestingLevel() {
        nestingLevel--;

        if (nestingLevel < 0) {
            throw syntax("Invalid parser state. Nesting level set to -1");
        }
    }
Decreases the current nesting level of the parser.
smithy-utils/src/main/java/software/amazon/smithy/utils/SimpleParser.java