def include_attributes(target_index)
        if target_index.present?
          Notification.group_member_exists?(target_index) ?
            target_index.with_target.with_notifiable.with_group.with_notifier :
            target_index.with_target.with_notifiable.with_notifier
        else
          Notification.none
        end
      end
def include_attributes(target_index)
        if target_index.present?
          Notification.group_member_exists?(target_index) ?
            target_index.with_target.with_notifiable.with_group.with_notifier :
            target_index.with_target.with_notifiable.with_notifier
        else
          Notification.none
        end
      end
Includes attributes like target, notifiable, group or notifier from the notification index.
 When group member exists in the notification index, group will be included in addition to target, notifiable and or notifier.
 Otherwise, target, notifiable and or notifier will be include without group.
 @api private

 @param [ActiveRecord_AssociationRelation<Notificaion>] target_index Notification index
 @return [ActiveRecord_AssociationRelation<Notificaion>] Notification index with attributes