void () { testCollectSelectedPaths(Set.of("3331", "3332", "3333"), test -> { test.getTree().setRootVisible(false); TreePath root = test.getTree().getPathForRow(17); // 333 return TreeUtil.collectSelectedPaths(test.getTree(), root); }); }