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