code: def _symbol_in(self, symbol, name):
          
          lsymbol = symbol.lower()
          lname = name.lower()
          return lsymbol == lname[:len(symbol)] or "_" + lsymbol in lname
docs: Checks whether the specified symbol is part of the name for completion.