'Add a handler for various codeintel hooks.
@param hook_handler {hooks.HookHandler}'

def add_hook_handler(self, hook_handler):

    assert isinstance(hook_handler, hooks.HookHandler)
    assert (hook_handler.name is not None), ('hook    handlers    must    have    a    name:    %r.name    is    None' % hook_handler)
    for lang in hook_handler.langs:
        self._hook_handlers_from_lang[lang].append(hook_handler)
