void (@NotNull Project project, Editor editor, PsiFile file, DataContext dataContext) { PsiElement element = getElement(file, editor); if (element == null) { return; } RenameDialog.showRenameDialog(dataContext, new RenameDialog(project, element, null, editor)); }