code: def _closeCompletion(self):
          
          if self._widget is not None:
              self._widget.close()
              self._widget = None
              self._completionOpenedManually = False
docs: Close completion, if visible.
          Delete widget