void buildStructure(final Node root, final boolean activate) throws Exception { doAndWaitForBuilder( () -> { myCom = root.addChild("com"); myIntellij = myCom.addChild("intellij"); myOpenApi = myIntellij.addChild("openapi"); myFabrique = root.addChild("jetbrains").addChild("fabrique"); myIde = myFabrique.addChild("ide"); myRunner = root.addChild("xUnit").addChild("runner"); myRcp = root.addChild("org").addChild("eclipse").addChild("rcp"); if (activate) { getBuilder().getUi().activate(true); } }); }