protected function getViewsSubSubdir($currentViewFile)
    {
        $viewsSubSubdir = false;
        $currentViewFile = realpath($currentViewFile);
        $currentViewPath = dirname($currentViewFile);

        $module = $this->context->module;

        $pathList = $module->getBasePathList();
        foreach ($pathList as $modulePath) {
            $viewsPath = realpath($modulePath) . DIRECTORY_SEPARATOR . $module::$viewsSubdir;
            if (strpos($currentViewPath, $viewsPath) === 0) {
                $viewsSubSubdir = substr($currentViewPath, strlen($viewsPath) + 1);
                return $viewsSubSubdir;
            }
        }
        throw new InvalidParamException(
            "Unexpected view file '{$currentViewFile}' is out of module's '{$module->className()}' parents chain"
        );
    }