JComponent () { myUi = new MigrationDialogUi(myMigrationMap); myUi.getEditLink().addActionListener(event -> editMap(myMigrationMap)); ActionLink removeLink = myUi.getRemoveLink(); if (removeLink != null) removeLink.addActionListener(event -> removeMap()); myUi.modulesCombo.setModules(getModuleOptions()); myUi.modulesCombo.allowEmptySelection(JavaRefactoringBundle.message("migration.dialog.scope.whole.project")); return myUi.getPanel(); }