Function TreeItems.canCollapse

bool canCollapse(
  TreeItem item
);