public static @Nullable SystemOpsStatistic measureConnectionSpeed(@NotNull JpsNettyClient nettyClient) {
    long start = System.currentTimeMillis();
    SystemOpsStatistic firstSystemStats = measureConnectionSpeedOnFile(nettyClient, INITIAL_FILE_FOR_SPEED_TEST, null);
    if (firstSystemStats == null) {
      LOG.info("Can't detect connection speed");
      return null;
    }
    String nextChunkFileName = calculateFileName(firstSystemStats);
    if (nextChunkFileName != null) {
      SystemOpsStatistic statistic = measureConnectionSpeedOnFile(nettyClient, nextChunkFileName, firstSystemStats);
      long connectionSpeedTime = (System.currentTimeMillis() - start) / 1000;
      LOG.info("Checking system operations: connection speed, decompression and delete took: " + connectionSpeedTime + "s");
      return statistic;
    } else {
      LOG.info("Connection speed is too small");
    }
    return null;
  }
public static @Nullable SystemOpsStatistic measureConnectionSpeed(@NotNull JpsNettyClient nettyClient)