public function findExtension(Array $possibleExtensions) {
    foreach ($possibleExtensions as $extension) {
      $file = clone $this;
      $file->setExtension($extension);

      if ($file->exists()) {
        return $file;
      }
    }

    throw FileNotFoundException::fromFileAndExtensions($this, $possibleExtensions);
  }