void () { EditMigrationEntryDialog dialog = new EditMigrationEntryDialog(myProject); MigrationMapEntry entry = new MigrationMapEntry(); dialog.setEntry(entry); if (!dialog.showAndGet()) { return; } dialog.updateEntry(entry); addEntry(entry); }