void () { final int addOrReplace = myManager.getOptionToReplace(); final JRadioButton radioButton = switch (addOrReplace) { case CoverageOptionsProvider.REPLACE_SUITE -> myPanel.myReplaceRB; case CoverageOptionsProvider.ADD_SUITE -> myPanel.myAddRB; case CoverageOptionsProvider.IGNORE_SUITE -> myPanel.myDoNotApplyRB; default -> myPanel.myShowOptionsRB; }; radioButton.setSelected(true); myPanel.myActivateCoverageViewCB.setSelected(myManager.activateViewOnRun()); super.reset(); }