assertEquals("f2() : void", getText(topLevelObjects[1]));
assertEquals("f3() : void", getText(topLevelObjects[2]));
}
private Object[] getTopLevelItems() {
StructureView structureView = createStructureViewModel();
final StructureViewModel structureViewModel = structureView.getTreeModel();
AbstractTreeStructure jsTreeStructure = new SmartTreeStructure(getProject(), structureViewModel);
Object[] items = TreeStructureUtil.getChildElementsFromTreeStructure(jsTreeStructure, jsTreeStructure.getRootElement());
structureViewModel.dispose();