void () { myRbInCurrentMethod.setEnabled(myAllowInitInMethodIfAll || !isReplaceAllOccurrences()); if (!myRbInCurrentMethod.isEnabled() && myRbInCurrentMethod.isSelected()) { myRbInCurrentMethod.setSelected(false); myRbInFieldDeclaration.setSelected(true); } }