private void addAllItems(CnATreeElement parent){
  items.add(parent);
  for (  CnATreeElement child : parent.getChildren()) {
    addAllItems(child);
  }
}

private void addAllItems ( CnATreeElement parent ) { items . add ( parent ) ; for ( CnATreeElement child : parent . getChildren ( ) ) { addAllItems ( child ) ; } }
recursively add all children .
