<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_editor(self, file):
 """ Returns the Model editor associated with given file. :param file: File to search editors for. :type file: unicode :return: Editor. :rtype: Editor """


        for editor in self.__model.list_editors():
            if editor.file == file:
                return editor