void (String classText, String expected, boolean showInterfaces, boolean showProperties) { myFixture.configureByText("Test.java", classText); myFixture.testStructureView(svc -> { svc.setActionActive(SuperTypesGrouper.ID, showInterfaces); svc.setActionActive(PropertiesGrouper.ID, showProperties); svc.setActionActive(JavaAnonymousClassesNodeProvider.ID, true); JTree tree = svc.getTree(); PlatformTestUtil.waitWhileBusy(tree); PlatformTestUtil.expandAll(tree); PlatformTestUtil.assertTreeEqual(tree, expected); }); }