void (String qualifiedName, @Nullable Exception ex) { String reason = ex != null ? ex.getLocalizedMessage() : null; if (reason == null || reason.isEmpty()) { reason = JavaDebuggerBundle.message("error.io.error"); } myProgress.addMessage(myDebuggerSession, MessageCategory.ERROR, qualifiedName + " : " + reason); }