void () { ArrayList<TreePath> list = new ArrayList<>(); testAsync(AsyncTreeModelTest::createMutableRoot, test -> TreeUtil.expandAll(test.tree, () -> testPathState(test.tree, " +'root'\n" + MUTABLE_CHILDREN, () -> collectTreePaths(test.tree, list, () -> test.updateModelAndWait(model -> ((DefaultTreeModel)model).setRoot(createMutableRoot()), () -> testPathState(test.tree, " +'root'\n" + MUTABLE_CHILDREN, () -> checkTreePaths(test.tree, list, test::done))))))); }