def setSyntax(self, syntax):
        """Choose smart indentation algorithm according to syntax"""
        self._smartIndenter = self._chooseSmartIndenter(syntax)
def stop(self):
        self._patcher.stop()
        self._patcher2.stop()
        self._server_mock = None