private function parseCompletedProcessesForFile(string $file, array $processes)
    {
        $commits = (integer) $this->parseCommits($processes['GitCommitProcess']);
        $complexity = (integer) $processes['CyclomaticComplexityProcess']->getOutput();

        $result = new Result([
            'file' => $file,
            'commits' => $commits,
            'complexity' => $complexity,
        ]);

        $this->resultsCollection->push($result);
    }