void () { super.init(); setModal(true); setTitle(GroovyRefactoringBundle.message("introduce.variable.title")); myCbReplaceAllOccurrences.setFocusable(false); myCbIsFinal.setFocusable(false); myCbIsFinal.setSelected(GroovyApplicationSettings.getInstance().INTRODUCE_LOCAL_CREATE_FINALS); // Replace occurrences if (myOccurrencesCount > 1) { myCbReplaceAllOccurrences.setSelected(false); myCbReplaceAllOccurrences.setEnabled(true); myCbReplaceAllOccurrences.setText(UIUtil.replaceMnemonicAmpersand( GroovyBundle.message("introduce.variable.replace.all.0.occurrences", myOccurrencesCount) )); } else { myCbReplaceAllOccurrences.setSelected(false); myCbReplaceAllOccurrences.setEnabled(false); } pack(); }