private function getRecentChanges(Tree $tree, int $days): array
    {
        return DB::table('change')
            ->where('gedcom_id', '=', $tree->id())
            ->where('status', '=', 'accepted')
            ->where('new_gedcom', '<>', '')
            ->where('change_time', '>', Carbon::now()->subDays($days))
            ->groupBy('xref')
            ->pluck('xref')
            ->map(static function (string $xref) use ($tree): ?GedcomRecord {
                return GedcomRecord::getInstance($xref, $tree);
            })
            ->filter(static function (?GedcomRecord $record): bool {
                return $record instanceof GedcomRecord && $record->canShow();
            })
            ->all();
    }