private AppointmentId[][] GetAppointmentIdsWithIdenticalHashCode() { return _hashesById .GroupBy(p => p.Value) .Where(g => g.Count() > 1) .Select(g => g.Select(p => p.Key).ToArray()) .ToArray(); }