public static function getVirtualModuleFields(string $module, bool $validate = true) : array
    {
        $fields = [];

        $mc = new ModuleConfig(ConfigType::MODULE(), $module, null, ['cacheSkip' => true]);
        $mc->setParser(new Parser($mc->createSchema(), ['validate' => $validate]));
        $virtualFields = Convert::objectToArray($mc->parse());

        if (isset($virtualFields['virtualFields'])) {
            $fields = $virtualFields['virtualFields'];
        }

        return $fields;
    }