protected function setStackTraces($stackTraces = null)
    {
        $traces = $this->parser->parseStackTrace($stackTraces);

        $output = [];

        foreach ($traces as $trace) {
            $output[] = new TraceEntry($this->parser, $trace);
        }

        $this->stack_traces = new Collection($output);
    }