docs: public int consumeInteger() throws ParsingException, IllegalStateException {
          if (completed) throwNoMoreContent();
          // Get the value from the current token ...
          String value = currentToken().value();
          try {
              int result = Integer.parseInt(value);
              moveToNextToken();
              return result;
          } catch (NumberFormatException e) {
              Position position = currentToken().position();
              String msg = CommonI18n.expectingValidIntegerAtLineAndColumn.text(value, position.getLine(), position.getColumn());
              throw new ParsingException(position, msg);
          }
      }