private function getSimpleCallTrace(array $backtrace): array
    {
        $calls = [];
        $exitOnNext = false;
        foreach ($backtrace as $call) {
            if (!isset($call['class'][2]) || ($call['class'][2] !== '\\' && \strpos($call['class'], '\\') === false)) {
                // skip if class has no namespace (Symfony lazy proxy or plain function)
                continue;
            }

            $calls[] = $call['class'] . $call['type'] . $call['function'] . '()';

            if ($exitOnNext) {
                break;
            }

            // Break out as soon as we have listed 2 classes outside of kernel
            if ($call['class'][0] !== 'e' && \strpos($call['class'], 'eZ\\Publish\\Core\\') !== 0) {
                $exitOnNext = true;
            }
        }

        return $calls;
    }