code: public boolean isSelectedPartially(TreePath path) {
          CheckedNode cn = nodesCheckingState.get(path);
          return cn.isSelected && cn.hasChildren && !cn.allChildrenSelected;
      }
docs: Returns true in case that the node is selected, has children but not all of them are selected