public void insertChildAt(Element child,int index){
  setChildParent(child);
  children.add(index,child);
}

public void insertChildAt ( Element child , int index ) { setChildParent ( child ) ; children . add ( index , child ) ; }
inserts the given child at the specified index
