When calling scanPaths repeatedly with paths that may overlap, calling this will ensure that the same class is never scanned twice
You can provide your own FileList instance or use the default one if you pass no argument
$this
public function avoidDuplicateScans(?FileList $scannedFiles = null) : self { $this->scannedFiles = $scannedFiles ?? new FileList(); return $this; }