'Return the appropriate set of autocomplete completions for
the given element. Typically this is just one, but can be more for
\'*\'-imports'

def _members_from_elem(self, elem, mgr):

    members = set()
    if (elem.tag == 'import'):
        alias = elem.get('alias')
        symbol_name = elem.get('symbol')
        module_name = elem.get('module')
        if symbol_name:
            import_handler = mgr.citadel.import_handler_from_lang(self.trg.lang)
            try:
                blob = import_handler.import_blob_name(module_name, self.buf.libs, self.ctlr)
            except:
                log.warn('limitation    in    handling    imports    in    imported    modules')
                raise
            if (symbol_name == '*'):
                for (m_name, m_elem) in blob.names.items():
                    m_type = (m_elem.get('ilk') or m_elem.tag)
                    members.add((m_type, m_name))
            elif (symbol_name in blob.names):
                symbol = blob.names[symbol_name]
                member_type = (symbol.get('ilk') or symbol.tag)
                members.add((member_type, (alias or symbol_name)))
            else:
                members.add(('unknown', (alias or symbol_name)))
                log.info("could    not    resolve    symbol    %r    on    %r,    added    as    'unknown'", symbol_name, module_name)
        else:
            cpln_name = (alias or module_name.split('.', 1)[0])
            members.add(('module', cpln_name))
    else:
        members.add(((elem.get('ilk') or elem.tag), elem.get('name')))
    return members
