private function applyModuleStateHtmlClassConvertFunction($moduleStateMap)
    {
        return $this->applyModuleStateMapFilterFunction(
            $moduleStateMap,
            $this->moduleStateHtmlClassConvertFunction,
            function ($moduleData, $convertFunction) {
                $moduleState = $moduleData[self::MODULE_STATE_KEY];
                $moduleData[self::MODULE_STATE_HTML_CLASS_KEY] = $convertFunction($moduleState);

                return $moduleData;
            }
        );
    }