static async checkSnapshotValid(compilation, snapshot) {
    // eslint-disable-next-line consistent-return
    return new Promise((resolve, reject) => {
      compilation.fileSystemInfo.checkSnapshotValid(
        snapshot,
        (error, isValid) => {
          if (error) {
            reject(error);

            return;
          }

          resolve(isValid);
        },
      );
    });
  }
@private
@param {Compilation} compilation
@param {Snapshot} snapshot
@returns {Promise<boolean | undefined>}