private function applyModuleGroupNameTranslateFunction($moduleStateMap)
    {
        $moduleGroupNameTranslateFilterFunction = $this->moduleGroupNameTranslateFunction;

        if (!$moduleGroupNameTranslateFilterFunction) {
            return $moduleStateMap;
        }

        $translatedModuleStateMap = [];

        foreach ($this->iterateThroughModuleStateMapByGroup($moduleStateMap) as list($groupId, $modules)) {
            $groupName = $moduleGroupNameTranslateFilterFunction($groupId);
            $translatedModuleStateMap[$groupName] = $modules;
        }

        return $translatedModuleStateMap;
    }