void () { doTestTreeStructure(model -> { TreeElement[] children = model.getRoot().getChildren(); assertEquals(2, children.length); assertEquals("aaa", children[0].getPresentation().getPresentableText()); assertEquals(PlatformIcons.PROPERTY_ICON, children[0].getPresentation().getIcon(false)); assertEquals("bbb", children[1].getPresentation().getPresentableText()); assertEquals(AllIcons.Json.Object, children[1].getPresentation().getIcon(false)); children = children[1].getChildren(); assertEquals(1, children.length); assertEquals("ccc", children[0].getPresentation().getPresentableText()); assertEquals(PlatformIcons.PROPERTY_ICON, children[0].getPresentation().getIcon(false)); }); }