def METHOD_NAME(self, group: Group, num: int) -> Sequence[Group]:
    activities = []
    activity_qs = self.filter(group=group).order_by("-datetime")
    prev_sig = None
    sig = None
    # we select excess so we can filter dupes
    for item in activity_qs[: num * 2]:
        prev_sig = sig
        sig = (item.type, item.ident, item.user_id)
        if item.type == ActivityType.NOTE.value:
            activities.append(item)
            continue
        if sig != prev_sig:
            activities.append(item)
    activities.append(
        Activity(
            id=0,
            project=group.project,
            group=group,
            type=ActivityType.FIRST_SEEN.value,
            datetime=group.first_seen,
        )
    )
    return activities[:num]