public function countIssuesBySeverity(string $severity): int
    {
        $count = 0;
        foreach ($this->files as $file) {
            $count += count($file->getIssuesBySeverity($severity));
        }
        return $count;
    }