public static void log(@NotNull Throwable throwable, @NotNull Logger log) {
    String message = throwable.getMessage();
    if (message == null) {
      log.error(throwable);
      return;
    }

    if (message.startsWith("Connection reset")) {//NON-NLS
      return;
    }

    if (isAsWarning(message, throwable)) {
      log.warn(throwable);
    }
    else {
      log.error(throwable);
    }
  }
public static void log(@NotNull Throwable throwable, @NotNull Logger log)