code: public static IOException createIOException(List<IOException> exceptions) {
      if (exceptions == null || exceptions.isEmpty()) {
        return null;
      }
      if (exceptions.size() == 1) {
        return exceptions.get(0);
      }
      return new MultipleIOException(exceptions);
    }
docs: A convenient method to create an {@link IOException}.