public void collapse(TreePath[] paths){
  for (  TreePath path : paths) {
    collapse((NodeBase)path.getLastPathComponent());
  }
}

public void collapse ( TreePath [ ] paths ) { for ( TreePath path : paths ) { collapse ( ( NodeBase ) path . getLastPathComponent ( ) ) ; } }
collapse an array of paths
