FileStructurePopup () { if (myPopup == null || myFile != myFixture.getFile()) { if (myPopup != null) { Disposer.dispose(myPopup); myPopup = null; } myFile = myFixture.getFile(); myPopup = ViewStructureAction.createPopup(myFixture.getProject(), TextEditorProvider.getInstance().getTextEditor(myFixture.getEditor())); assert myPopup != null; Disposer.register(this, myPopup); myPopup.createCenterPanel(); } return myPopup; }