void (boolean value, boolean onOk) { final VcsShowConfirmationOption.Value optionValue; if (value) { optionValue = VcsShowConfirmationOption.Value.SHOW_CONFIRMATION; } else { if (onOk) { optionValue = VcsShowConfirmationOption.Value.DO_ACTION_SILENTLY; } else { optionValue = VcsShowConfirmationOption.Value.DO_NOTHING_SILENTLY; } } myOption.setValue(optionValue); }