void (String path) { final LayoutTreeComponent layoutTreeComponent = myArtifactEditor.getLayoutTreeComponent(); layoutTreeComponent.getLayoutTree().clearSelection(); Promise<TreePath> selection = layoutTreeComponent.selectNode(PathUtil.getParentPath(path), PathUtil.getFileName(path)); TreePath result = PlatformTestUtil.assertPromiseSucceeds(selection); assertFalse("Node " + path + " not found, result=" + result, layoutTreeComponent.getSelection().getNodes().isEmpty()); }