docs: public void insertAsParent( AstNode newParent ) {
          if (newParent == null) {
              return;
          }
          newParent.removeFromParent();
          if (this.parent != null) {
              this.parent.replaceChild(this, newParent);
          }
          newParent.addLastChild(this);
      }