protected void checkTree(String filter) {
   myPopupFixture.getPopup().setSearchFilterForTests(filter);
   myPopupFixture.getBuilder().refilter(null, false, true);
   myPopupFixture.getBuilder().queueUpdate();
   TreeUtil.selectPath(
       myPopupFixture.getTree(), (TreePath) myPopupFixture.getSpeedSearch().findElement(filter));
   checkTree();
 }
 @Before
 public void setUp() throws Exception {
   super.setUp();
   myFixture.configureByFile(getFileName(getFileExtension()));
   myPopupFixture =
       new FileStructureTestFixture(myFixture.getProject(), myFixture.getEditor(), getFile());
   myPopupFixture.update();
 }
 @Override
 public void tearDown() throws Exception {
   try {
     if (myPopupFixture != null) {
       myPopupFixture.dispose();
       myPopupFixture = null;
     }
   } finally {
     super.tearDown();
   }
 }
 protected void checkTree() {
   assertSameLinesWithFile(
       getTestDataPath() + "/" + getTreeFileName(),
       PlatformTestUtil.print(myPopupFixture.getTree(), true).trim());
 }