void (@NotNull Project project, @NotNull PsiFile file, @Nullable Editor editor, @NotNull PsiElement startElement, @NotNull PsiElement endElement) { VirtualFile virtualFile = file.getVirtualFile(); DataContext dataContext = createDataContext(editor, editor == null ? null : editor.getComponent(), virtualFile, project); ListPopup popup = new ChangeFileEncodingAction().createPopup(dataContext, null); if (popup != null) { popup.showInBestPositionFor(dataContext); } }