void (final String expected, final boolean inherited) { myFixture.testStructureView(component -> { component.setActionActive("SHOW_INHERITED", !inherited); final JTree tree = component.getTree(); PlatformTestUtil.waitWhileBusy(tree); PlatformTestUtil.waitForPromise(TreeUtil.promiseExpandAll(tree)); assertFalse(tree.isRootVisible()); assertTreeEqual(tree, expected); }); }