void (JTree tree) { Assert.assertFalse("unexpected thread", isDispatchThread()); try { // the following method expands nodes on EDT, // so in this case we should pause the main thread promiseExpandAll(tree).blockingGet(10000); } catch (Exception exception) { throw new AssertionError(exception); } }