if (selectedItem == null) return;
if (!selectedItem.isLeaf() && selectedItem.isExpanded()) {
selectedItem.setExpanded(false);
} else if (selectedItem.getParentItem() != null
&& !selectedItem.getParentItem().isRoot()) {
doSelect(new Items(selectedItem.getParentItem()), false, false);
}
}