if (Language.treebank.isPreterminal(tree))
if (Language.treebank.isPreterminal(tree)) { SexpList treeList = tree.list(); Symbol currLabel = treeList.symbolAt(0); treeList.set(0, Language.treebank.getCanonical(currLabel));
  protected void canonicalizeNonterminals(Sexp tree) {    if (Language.treebank.isPreterminal(tree))      return;    else if (tree.isList()) {      SexpList treeList = tree.list();      Symbol currLabel = treeList.symbolAt(0);      treeList.set(0, Language.treebank.getCanonical(currLabel));      int treeListLen = treeList.length();      for (int i = 1; i < treeListLen; i++)        canonicalizeNonterminals(treeList.get(i));    }  }