private static @Nullable String readText(@NotNull InputStream stream) {
    try {
      return StreamUtil.readText(new InputStreamReader(stream, StandardCharsets.UTF_8));
    }
    catch (IOException e) {
      LOG.error(e);
    }
    return null;
  }
private static @Nullable String readText(@NotNull InputStream stream)