public static function isResourceOwnerSupported($resourceOwner)
    {
        $resourceOwner = strtolower($resourceOwner);
        if ('oauth1' === $resourceOwner || 'oauth2' === $resourceOwner) {
            return true;
        }

        if (\in_array($resourceOwner, static::$resourceOwners['oauth1'], true)) {
            return true;
        }

        return \in_array($resourceOwner, static::$resourceOwners['oauth2'], true);
    }