public static function getTableParentModules(Table $table): array
    {
        $result = [];

        list(, $moduleName) = pluginSplit($table->getRegistryAlias());

        try {
            $config = new ModuleConfig(ConfigType::MODULE(), $moduleName);
            $moduleConfig = $config->parseToArray();
            $result = Hash::get($moduleConfig, 'table.permissions_parent_modules', []);
        } catch (\InvalidArgumentException $e) {
            return $result;
        }

        return $result;
    }