protected function storeExceptions(Collection $exceptions)
    {
        $this->table('telescope_entries')->insert($exceptions->map(function ($exception) {
            $occurrences = $this->table('telescope_entries')
                    ->where('type', EntryType::EXCEPTION)
                    ->where('family_hash', $exception->familyHash())
                    ->count();

            $this->table('telescope_entries')
                    ->where('type', EntryType::EXCEPTION)
                    ->where('family_hash', $exception->familyHash())
                    ->update(['should_display_on_index' => false]);

            return array_merge($exception->toArray(), [
                'family_hash' => $exception->familyHash(),
                'content' => json_encode(array_merge(
                    $exception->content, ['occurrences' => $occurrences + 1]
                )),
            ]);
        })->toArray());

        $this->storeTags($exceptions->pluck('tags', 'uuid'));
    }