void () { testCollectExpandedPaths(Set.of("33", "333"), test -> { test.getTree().setRootVisible(false); TreePath root = test.getTree().getPathForRow(14); // 33 return TreeUtil.collectExpandedPaths(test.getTree(), root); }); }