boolean (@NotNull DebuggerSettings settings) { int answer = Messages.showCheckboxMessageDialog( JavaDebuggerBundle.message("hotswap.dialog.hang.warning"), JavaDebuggerBundle.message("hotswap.dialog.title"), new String[]{ JavaDebuggerBundle.message("button.perform.reload.classes"), JavaDebuggerBundle.message("button.skip.reload.classes"), }, UIBundle.message("dialog.options.do.not.show"), false, 1, 1, Messages.getWarningIcon(), (exitCode, cb) -> { settings.HOTSWAP_HANG_WARNING_ENABLED = !cb.isSelected(); return exitCode == DialogWrapper.OK_EXIT_CODE ? exitCode : DialogWrapper.CANCEL_EXIT_CODE; } ); return answer != DialogWrapper.CANCEL_EXIT_CODE; }