public void updateBuildStatistic(@NotNull ProjectDescriptor projectDescriptor) {
    if (isForceCachesDownload) return;
    if (!hasRunningTask.get() && isCacheDownloaded) {
      BuildTargetsState targetsState = projectDescriptor.getTargetsState();
      myOriginalBuildStatistic.getBuildTargetTypeStatistic().forEach((buildTargetType, originalBuildTime) -> {
        targetsState.setAverageBuildTime(buildTargetType, originalBuildTime);
        LOG.info("Saving old build statistic for " + buildTargetType.getTypeId() + " with value " + originalBuildTime);
      });
      Long originalBuildStatisticProjectRebuildTime = myOriginalBuildStatistic.getProjectRebuildTime();
      targetsState.setLastSuccessfulRebuildDuration(originalBuildStatisticProjectRebuildTime);
      LOG.info("Saving old project rebuild time " + originalBuildStatisticProjectRebuildTime);
    }
  }
public void updateBuildStatistic(@NotNull ProjectDescriptor projectDescriptor)