if (fileEditor == null) return;
PsiFile psiFile = PsiDocumentManager.getInstance(project).getPsiFile(editor.getDocument());
if (psiFile == null) return;
PsiDocumentManager.getInstance(project).commitDocument(editor.getDocument());
FeatureUsageTracker.getInstance().triggerFeatureUsed("navigation.popup.file.structure");
<BUG>DialogWrapper dialog;
dialog = createDialog(psiFile, fileEditor.getStructureViewModel(), editor, project, (Navigatable)dataContext.getData(DataConstants.NAVIGATABLE));
</BUG>
dialog.setTitle(psiFile.getVirtualFile().getPresentableUrl());
dialog.show();

if (fileEditor == null) return;
PsiFile psiFile = PsiDocumentManager.getInstance(project).getPsiFile(editor.getDocument());
if (psiFile == null) return;
PsiDocumentManager.getInstance(project).commitDocument(editor.getDocument());
FeatureUsageTracker.getInstance().triggerFeatureUsed("navigation.popup.file.structure");
final StructureViewModel structureViewModel = AntFileStructureList.canShowFor(psiFile) ? null : fileEditor.getStructureViewModel();
DialogWrapper dialog = createDialog(psiFile, structureViewModel, editor, project, (Navigatable)dataContext.getData(DataConstants.NAVIGATABLE));
dialog.setTitle(psiFile.getVirtualFile().getPresentableUrl());
dialog.show();
