void (@NotNull ModelTest test, @NotNull GroupModel model, Object group, @NotNull Runnable task) { model.setGroup(group, () -> test.runOnSwingThreadWhenProcessingDone(() -> test.visit(path -> { test.tree.makeVisible(path); return TreeVisitor.Action.CONTINUE; }, true, done -> testPathState(test.tree, group != null ? " +root\n +" + group + "\n +node\n leaf\n" : " +root\n +node\n leaf\n", task)))); }