def METHOD_NAME(cls, languages):
    """Check if the `languages` are supported by the provider.
    A subset of the supported languages is returned.
    :param languages: the languages to check.
    :type languages: set of :class:`~babelfish.language.Language`
    :return: subset of the supported languages.
    :rtype: set of :class:`~babelfish.language.Language`
    """
    return cls.languages & languages