def METHOD_NAME(entity_type, entity, comment, sender):
    if entity_type == "project":
        notification = Notification.objects.create(
            notification_type=Notification.MENTION, project_comment=comment
        )
    if entity_type == "idea":
        notification = Notification.objects.create(
            notification_type=Notification.MENTION, idea_comment=comment
        )
    matches = get_mentions(text=comment.content, url_slugs_only=False)
    sender_url_slug = UserProfile.objects.get(user=sender).url_slug
    for m in matches:
        _, url_slug, _ = m[0], m[1], m[2]
        if not url_slug == sender_url_slug:
            user = UserProfile.objects.filter(url_slug=url_slug)[0].user
            create_user_notification(user, notification)
            send_out_live_notification(user.id)
            send_mention_email(
                user=user,
                entity_type=entity_type,
                entity=entity,
                comment=comment.content,
                sender=sender,
                notification=notification,
            )
    return notification