docs: public Collection<Tree> getRelatedNodes(Tree t, Tree root) {
      if (root.value() == null) {
        root.setValue("ROOT");  // todo: cdm: it doesn't seem like this line should be here
      }
      Set<Tree> nodeList = new LinkedHashSet<Tree>();
      for (TregexPattern p : targetPatterns) {    // cdm: I deleted: && nodeList.isEmpty()
        TregexMatcher m = p.matcher(root);
        while (m.find()) {
          if (m.getMatch() == t) {
            nodeList.add(m.getNode("target"));
            //System.out.println("found " + this + "(" + t + ", " + m.getNode("target") + ")");
          }
        }
      }
      return nodeList;
    }