def METHOD_NAME(self, request, queryset):
    prev = (
        super(SimilarityDisqualificationMixin, self)
        .METHOD_NAME(request, queryset)
        .distinct()
    )
    if not request.user.is_authenticated:
        return prev
    # TODO: only in grace period, guilty
    # Do not split this filter as it spans many-to-many relationship
    similar = queryset.filter(
        similarities__group__submissions__submission__user=request.user,
        similarities__group__submissions__guilty=True,
    ).distinct()
    return (prev | similar).distinct()