boolean (@NotNull List<? extends ModuleEditor> selectedEditors) { String question; if (myModuleEditors.size() == selectedEditors.size()) { question = JavaUiBundle.message("module.remove.last.confirmation", selectedEditors.size()); } else { question = JavaUiBundle.message("module.remove.confirmation", selectedEditors.get(0).getModule().getName(), selectedEditors.size()); } int result = Messages.showYesNoDialog(myProject, question, JavaUiBundle.message("module.remove.confirmation.title", selectedEditors.size()), Messages.getQuestionIcon()); if (result != Messages.YES) { return false; } return true; }