void () { final boolean canSetBounds = !myConstantRadioButton.isSelected(); myMinimumCheckBox.setEnabled(canSetBounds); myMaximumCheckBox.setEnabled(canSetBounds); // TODO: remove this code when IDEADEV-9678 is implemented if (myMinimumCheckBox.isSelected()) { myMaximumCheckBox.setEnabled(false); myMaximumCheckBox.setSelected(false); } else if (myMaximumCheckBox.isSelected()) { myMinimumCheckBox.setEnabled(false); } if (!canSetBounds) { myMinimumCheckBox.setSelected(false); myMaximumCheckBox.setSelected(false); } updateSpec(); }