code: public void deselectSelectedItem() {
          // Check whether tree has selected item
          if (selectedItem != null) {
              clearSelectedStyles(selectedItem);
              setSelectedItem(null);
              SelectionEvent.fire(this, null);
          }
      }
docs: Deselect selected tree item