code: public static List<Object> getAllDescendants(
          TreeModel treeModel, Object node)
      {
          List<Object> result = new ArrayList<Object>();
          getAllDescendants(treeModel, node, result);
          result.remove(node);
          return result;
      }
docs: Return all descendants of the given node in the given tree model
  (not including the given node!)
  
  @param treeModel The tree model
  @param node The node
  @return The descendants