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