docs: public static <T extends SoyNode> T cloneWithNewIds(T origNode, IdGenerator nodeIdGen) {
  
      // Clone the node.
      @SuppressWarnings("unchecked")
      T clone = (T) origNode.copy(new CopyState());
  
      // Generate new ids.
      (new GenNewIdsVisitor(nodeIdGen)).exec(clone);
  
      return clone;
    }