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