private void processIndent() {
        JsonToken currentToken = parser.currentToken();
        if (currentToken == null) {
            throw new IllegalArgumentException("Could not read document, no document?");
        }
        switch (currentToken) {
            case START_OBJECT -> indentLevel++;
            case END_OBJECT -> indentLevel--;
            case START_ARRAY -> indentLevel += 10000L;
            case END_ARRAY -> indentLevel -= 10000L;
        }
    }
Parses one item from the stream.

@return whether an item was found
document/src/main/java/com/yahoo/document/json/document/DocumentParser.java