newChild.setParent(parent);
  public void insertNodeInto(MutableTreeNode newChild, MutableTreeNode parent,                             int index)  {    parent.insert(newChild, index);    int[] childIndices = new int[1];    childIndices[0] = index;    nodesWereInserted(parent, childIndices);  }