for (int i = 0; i < nonterminalExceptionSet.length; i++) if (label == nonterminalExceptionSet[i]) return label;
if (outputLexLabels) { int rbracketIdx = label.toString().indexOf('['); if (rbracketIdx != -1) { Symbol base = Symbol.get(label.toString().substring(0, rbracketIdx)); for (int i = 0; i < nonterminalExceptionSet.length; i++) if (base == nonterminalExceptionSet[i]) return label; } } else { for (int i = 0; i < nonterminalExceptionSet.length; i++) if (label == nonterminalExceptionSet[i]) return label; }
  public final Symbol getCanonical(Symbol label) {    for (int i = 0; i < nonterminalExceptionSet.length; i++)      if (label == nonterminalExceptionSet[i])        return label;    Symbol strippedLabel = stripAugmentation(label);    Symbol mapEntry = (Symbol)canonicalLabelMap.get(strippedLabel);    return ((mapEntry == null) ? strippedLabel : mapEntry);  }