void () { if (myRbInCurrentMethod.isEnabled()) { myRbInCurrentMethod.setSelected(true); } else if (myRbInFieldDeclaration.isEnabled()) { myRbInFieldDeclaration.setSelected(true); } else { myRbInCurrentMethod.setSelected(true); } }