int (String message, String title, String[] options, String checkboxText, boolean checked, int defaultOptionIndex, int focusedOptionIndex, Icon icon, BiFunction<? super Integer, ? super JCheckBox, Integer> exitFunc) { if (isApplicationInUnitTestOrHeadless()) { return TestDialogManager.getTestImplementation().show(message); } TwoStepConfirmationDialog dialog = new TwoStepConfirmationDialog(message, title, options, checkboxText, checked, defaultOptionIndex, focusedOptionIndex, icon, exitFunc); dialog.show(); return dialog.getExitCode(); }