static createSnapshot(fileDependencies, mainCompilation, startTime) {
    return new Promise((resolve, reject) => {
      mainCompilation.fileSystemInfo.createSnapshot(
        startTime,
        fileDependencies.fileDependencies,
        fileDependencies.contextDependencies,
        fileDependencies.missingDependencies,
        // @ts-ignore
        null,
        (err, snapshot) => {
          if (err) {
            return reject(err);
          }
          resolve(snapshot);
        },
      );
    });
  }
@param {{fileDependencies: string[], contextDependencies: string[], missingDependencies: string[]}} fileDependencies
@param {Compilation} mainCompilation
@param {number} startTime