void (@NlsContexts.DialogMessage String validation) { ApplicationManager.getApplication().invokeAndWait(() -> { final boolean saveAnyway = validationFailed(validation, getSdkFactory().canSaveUnfinished()); if (saveAnyway) { mySdk = saveUnfinished(); if (mySdk != null) { super.doOKAction(); } } }); }