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