code: public void addLastChild( PlanNode child ) {
          assert child != null;
          this.children.addLast(child);
          child.removeFromParent();
          child.parent = this;
      }
docs: Add the supplied node to the end of the list of children.
  
  @param child the node that should be added as the last child; may not be null