private static @Nullable Map<String, List<String>> doGetRequest(@NotNull Project project, @NotNull String serverUrl) {
    Map<String, String> headers = CompilerCacheServerAuthService.getInstance(project).getRequestHeaders();
    if (headers.isEmpty()) return null;
    try {
      return HttpRequests.request(serverUrl + "/commit_history.json")
        .tuner(tuner -> headers.forEach((k, v) -> tuner.addRequestProperty(k, v)))
        .connect(it -> {
          if (it.getConnection() instanceof HttpURLConnection httpConnection) {
            if (httpConnection.getResponseCode() == 200) {
              return OBJECT_MAPPER.readValue(getInputStream(httpConnection), new TypeReference<>() {
              });
            }
            else {
              String statusLine = httpConnection.getResponseCode() + ' ' + httpConnection.getRequestMethod();
              String errorText = StreamUtil.readText(new InputStreamReader(httpConnection.getErrorStream(), StandardCharsets.UTF_8));
              LOG.info("Request: " + httpConnection.getRequestMethod() + httpConnection.getURL() + " : Error " + statusLine + " body: " + errorText);
            }
          }
          return null;
        });
    }
    catch (IOException e) {
      LOG.warn("Failed request to cache server", e);
    }
    return null;
  }
private static @Nullable Map<String, List<String>> doGetRequest(@NotNull Project project, @NotNull String serverUrl)