JPanel () { final JPanel panel = new JPanel(new FlowLayout()); myCbIsFinal = new JCheckBox(UIUtil.replaceMnemonicAmpersand( GroovyBundle.message("introduce.variable.declare.final.label") )); panel.add(myCbIsFinal); myCbReplaceAllOccurrences = new JCheckBox(UIUtil.replaceMnemonicAmpersand( GroovyBundle.message("introduce.variable.replace.all.occurrences") )); panel.add(myCbReplaceAllOccurrences); return panel; }