private function build()
{
foreach ($this->fileSystem->getAllFiles($this->getRootDirectory(), '/^.*\\.php$/') as $filePath) {
require_once $filePath;
}
$this->checks = [];
foreach (get_declared_classes() as $class) {
$reflectionClass = new ReflectionClass($class);
if ($this->canInstantiate($reflectionClass)) {
$this->checks[] = $reflectionClass->newInstance();
}
}
}