void (ActionEvent e) { myIgnoredColorPanel.setEnabled(!myInheritIgnoredCheckBox.isSelected()); if (myInheritIgnoredCheckBox.isSelected()) { myIgnoredColorPanel.setSelectedColor(null); } else { Color background = ObjectUtils.notNull(myBackgroundColorPanel.getSelectedColor(), JBColor.WHITE); Color gutterBackground = myOptions.getSelectedScheme().getDefaultBackground(); myIgnoredColorPanel.setSelectedColor(TextDiffTypeFactory.getMiddleColor(background, gutterBackground)); } onSettingsChanged(e); }