void (@Nullable @NlsContexts.DialogMessage String message, boolean isError) { if (checkIsInProgressAndComplete()) { invokeLater(() -> { myLock.lock(); try { if (!myCancelled) { JBColor color = isError ? JBColor.RED : JBColor.DARK_GRAY; Icon statusIcon = isError ? AllIcons.Actions.Lightning : AllIcons.General.InspectionsOK; myError = isError ? message : null; showMessage(StringUtil.notNullize(message), color, statusIcon); } } finally { myLock.unlock(); } }); } }