T + innerEQT + lastTaskEQT.
   * It is intended to be used only in maxExpectedQueueingTimeInSlidingWindow().
   */
  class SlidingWindow {
    /**
     * @param {number} The starting time of the sliding window.
     * @param {number} The window size.
     * @param {!Array.<!{start: number, end: number}>} A list of tasks sorted by
     *     task start time.
     */
    constructor(startTime, windowSize, sortedTasks) {
      /**
       * @private @const {number} The window size.
       */
      this.windowSi