private static function getForeignKeysNames(string $table): array
    {
        if (self::$foreignKeysCache === null || !array_key_exists($table, self::$foreignKeysCache))
            self::getForeignKeys($table);

        return array_keys(self::$foreignKeysCache[$table]);
    }