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