void (ActionEvent e) { boolean quotesRequired = !CodeStyleSettings.QuoteStyle.None.equals(myQuotesCombo.getSelectedItem()); myEnforceQuotesBox.setEnabled(quotesRequired); if (!quotesRequired) myEnforceQuotesBox.setSelected(false); }