docs: protected void reportWorked(int workIncrement, int currentUnitIndex) {
          if (this.progress != null) {
              if (this.progress.isCanceled()) {
                  // Only AbortCompilation can stop the compiler cleanly.
                  // We check cancellation again following the call to compile.
                  throw new AbortCompilation(true, null);
              }
              this.progress.worked(workIncrement, (this.totalUnits* this.remainingIterations) - currentUnitIndex - 1);
          }
      }