void () { MigrationMap newMap = new MigrationMap(); final EditMigrationDialog editMigrationDialog = new EditMigrationDialog(myProject, newMap, myMigrationMapSet, ""); if (!editMigrationDialog.showAndGet()) { return; } updateMapFromDialog(newMap, editMigrationDialog); myMigrationMapSet.addMap(newMap); try { myMigrationMapSet.saveMaps(); } catch (IOException e) { LOG.error("Couldn't save migration maps.", e); } }