private static Reader createInputStreamReader(@NotNull InputStream stream, @Nullable Charset charset) {
    return charset == null ? new BaseInputStreamReader(stream) : new BaseInputStreamReader(stream, charset);
  }
private static Reader createInputStreamReader(@NotNull InputStream stream, @Nullable Charset charset)