void (boolean enabled) { myLanguagesPanel.setEnabled(enabled); for (LanguageCheckBoxRec checkBoxRec : myLanguageCheckBoxes) { checkBoxRec.myCheckBox.setEnabled(enabled && isLanguageCheckBoxEnabled(checkBoxRec)); } }