code: private void process(Node node, List<String> sentence, List<Span> names) {
      if (node != null) {
        for (TreeElement element : node.getElements()) {
          if (element.isLeaf()) {
            processLeaf((Leaf) element, sentence, names);
          } else {
            process((Node) element, sentence, names);
          }
        }
      }
    }
docs: Recursive method to process a node in Arvores Deitadas format.
  
  @param node
  the node to be processed
  @param sentence
  the sentence tokens we got so far
  @param names
  the names we got so far