code: public TrieNode visitFirst(Consumer<? super TrieNode> visitor) {
      visitor.accept(this);
      TrieNode refresh = refresh();
      refresh.getChildren().forEach(n -> n.visitFirst(visitor));
      return refresh;
    }
docs: Visit first trie node.
  
  @param visitor the visitor
  @return the trie node