docs: public void consume( int expectedType ) throws ParsingException, IllegalStateException {
          if (completed) {
              String msg = CommonI18n.noMoreContentButWasExpectingTokenType.text(expectedType);
              throw new ParsingException(tokens.get(tokens.size() - 1).position(), msg);
          }
          // Get the value from the current token ...
          if (expectedType != ANY_TYPE && currentToken().type() != expectedType) {
              String found = currentToken().value();
              Position pos = currentToken().position();
              String fragment = generateFragment();
              String msg = CommonI18n.unexpectedTokenType.text(expectedType, found, pos.getLine(), pos.getColumn(), fragment);
              throw new ParsingException(pos, msg);
          }
          moveToNextToken();
      }