protected function get_social_indicator($modname) {
        $indicators = \core_analytics\manager::get_all_indicators();
        foreach ($indicators as $indicator) {
            if ($indicator instanceof community_of_inquiry_activity &&
                    $indicator->get_indicator_type() === community_of_inquiry_activity::INDICATOR_SOCIAL &&
                    $indicator->get_activity_type() === $modname) {
                return $indicator;
            }
        }
        return false;
    }