void (@NotNull Project project, PsiElement @NotNull [] elements, DataContext dataContext) { LOG.assertTrue(project instanceof ProjectEx); final Module module = LangDataKeys.MODULE_CONTEXT.getData(dataContext); LOG.assertTrue(module != null); Messages.showInputDialog(project, RefactoringBundle.message("enter.new.project.name"), RefactoringBundle.message("rename.project"), Messages.getQuestionIcon(), module.getName(), new MyInputValidator((ProjectEx)project, module)); }