@Override
    public void buildStarted(@NotNull CompileContext context) {
      final MemoryMXBean memory = ManagementFactory.getMemoryMXBean();
      final OperatingSystemMXBean os = ManagementFactory.getPlatformMXBean(OperatingSystemMXBean.class);

      context.processMessage(new CompilationStatusBuilderMessage("START"));

      myStatisticsRunnable = () -> send(context, CompileStatisticBuilderMessage.create(memory, os));
      myStatisticsReporter = AppExecutorUtil.createBoundedScheduledExecutorService("IncProjectBuilder metrics reporter", 1)
        .scheduleWithFixedDelay(myStatisticsRunnable, 0, 1, TimeUnit.SECONDS);
    }
@Override
    public void buildStarted(@NotNull CompileContext context)