private function truncateTrace($thrower): void
    {
        /** @noinspection PhpUndefinedFieldInspection */
        /** @noinspection PhpUndefinedMethodInspection */
        $this->truncatedTrace = new ExceptionTrace($this->getTrace(), $this->file, $this->line);
        $options = $this->createOptionsForTruncateTrace($thrower);
        if (!$options) {
            return;
        }
        $this->truncatedTrace->truncate($options);
        /** @noinspection PhpUndefinedFieldInspection */
        $this->file = $this->truncatedTrace->file;
        /** @noinspection PhpUndefinedFieldInspection */
        $this->line = $this->truncatedTrace->line;
    }