docs: public int getStateId(LR1ItemSet targetSet) throws GrammarException {
  	for (int stateId = 0; stateId < itemSetCollection.size(); stateId++) {
  	    LR1ItemSet lr1ItemSet = itemSetCollection.get(stateId);
  	    if (lr1ItemSet.equals(targetSet)) {
  		return stateId;
  	    }
  	}
  	throw new GrammarException("Target set '" + targetSet
  		+ "' was not found!");
      }