docs: private static void analyzeNode(TreeGraphNode t, TreeGraphNode root, Collection<GrammaticalRelation> relations) {
      // if (t.numChildren() > 0) {          // don't do leaves
      if (t.isPhrasal()) {    // don't do leaves or preterminals!
        TreeGraphNode tHigh = t.highestNodeWithSameHead();
        for (GrammaticalRelation egr : relations) {
          if (egr.isApplicable(t)) {
            for (Tree u : egr.getRelatedNodes(t, root)) {
              tHigh.addArc(GrammaticalRelation.getAnnotationClass(egr), (TreeGraphNode) u);
            }
          }
        }
        // now recurse into children
        for (TreeGraphNode kid : t.children()) {
          analyzeNode(kid, root, relations);
        }
      }
    }