void () { testCollectSelectedUserObjects(Set.of("33"), test -> { test.getTree().collapseRow(15); // 33 TreePath root = test.getTree().getPathForRow(15); // 33 return TreeUtil.collectSelectedUserObjects(test.getTree(), root); }); }