void (long delay, int minutes, Supplier<? extends TreeNode> supplier, Consumer<? super TreeTest> consumer) { new TreeTest(minutes, consumer, parent -> model(supplier, delay, false, null)); new TreeTest(minutes, consumer, parent -> model(supplier, delay, true, Invoker.forEventDispatchThread(parent))); new TreeTest(minutes, consumer, parent -> model(supplier, delay, false, Invoker.forEventDispatchThread(parent))); new TreeTest(minutes, consumer, parent -> model(supplier, delay, true, Invoker.forBackgroundThreadWithReadAction(parent))); new TreeTest(minutes, consumer, parent -> model(supplier, delay, false, Invoker.forBackgroundThreadWithReadAction(parent))); }