<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_language(self, editor, language):
 """ Sets given language to given Model editor. :param editor: Editor to set language to. :type editor: Editor :param language: Language to set. :type language: Language :return: Method success. :rtype: bool """


        LOGGER.debug("> Setting '{0}' language to '{1}' editor.".format(language.name, editor))

        return editor.set_language(language)