code: public function contains($subject, $comparator = null) : bool
      {
          if (! $subject instanceof ScannedFile) {
              return false;
          }
  
          foreach ($this as $file) {
              if ($file instanceof ScannedFile && $file->getFilePath() === $subject->getFilePath()) {
                  return true;
              }
          }
  
          return false;
      }
docs: @param ScannedFile                  $subject
  @param BinaryFunction|callable|null $comparator
  
  @return bool