void () { if (MessageDialogBuilder .yesNo(JavaRefactoringBundle.message("migration.dialog.alert.name"), JavaRefactoringBundle.message("migration.dialog.alert.text", myMigrationMap.getName())) .yesText(JavaRefactoringBundle.message("migration.dialog.alert.delete")) .ask(myUi.getPanel())) { myMigrationMapSet.removeMap(myMigrationMap); try { myMigrationMapSet.saveMaps(); doCancelAction(); } catch (IOException e) { LOG.error("Couldn't save migration maps.", e); } } }