'Return an "import"-handler for the given language.
Returns None if don\'t know how to handle imports for this language.
Each language-specific ImportHandler object is a singleton.
TODO: move this to Manager class.'

def import_handler_from_lang(self, lang):

    if (lang not in self._import_handler_from_lang):
        try:
            self._import_handler_from_lang[lang] = self.mgr.import_handler_class_from_lang[lang](self.mgr)
        except KeyError:
            raise CodeIntelError(("there    is    no    registered    ImportHandler    class    for    language    '%s'" % lang))
    return self._import_handler_from_lang[lang]
