void (JPanel panel) { myDeclareFinalCheckBox = new JCheckBox(UIUtil.replaceMnemonicAmpersand(GroovyBundle.message( "introduce.variable.declare.final.label"))); myDeclareFinalCheckBox.setFocusable(false); panel.add(myDeclareFinalCheckBox); myDelegateViaOverloadingMethodCheckBox = new JCheckBox(UIUtil.replaceMnemonicAmpersand( GroovyBundle.message("introduce.parameter.delegate.via.overload") )); myDelegateViaOverloadingMethodCheckBox.setFocusable(false); panel.add(myDelegateViaOverloadingMethodCheckBox); for (JCheckBox cb : toRemoveCBs.keySet()) { cb.setFocusable(false); panel.add(cb); } }