void (@NotNull final String expected) { final ProjectViewImpl projectView = (ProjectViewImpl)ProjectView.getInstance(getProject()); final TestProjectTreeStructure structure = new TestProjectTreeStructure(getProject(), myFixture.getTestRootDisposable()); final AbstractProjectViewPane pane = structure.createPane(); projectView.addProjectPane(pane); PlatformTestUtil.expandAll(pane.getTree()); PlatformTestUtil.assertTreeEqual(pane.getTree(), "-Project\n" + " -PsiDirectory: src\n" + expected + " External Libraries\n", true); projectView.removeProjectPane(pane); }