private void setIndependent(TreeItem<?> item) {
if (item == null || !(item instanceof CheckBoxTreeItem))
return;
CheckBoxTreeItem checkItem = (CheckBoxTreeItem) item;
checkItem.setIndependent(true);
for (TreeItem child : item.getChildren()) {
setIndependent(child);
}
}