code: def handle_incoming_response(self, call_id, payload):
          
          self.log.debug('handle_incoming_response: in [typehint: %s, call ID: %s]',
                         payload['typehint'], call_id)  # We already log the full JSON response
  
          typehint = payload["typehint"]
          handler = self.handlers.get(typehint)
  
          def feature_not_supported(m):
              msg = feedback["handler_not_implemented"]
              self.editor.raw_message(msg.format(typehint, self.launcher.ensime_version))
  
          if handler:
              with catch(NotImplementedError, feature_not_supported):
                  handler(call_id, payload)
          else:
              self.log.warning('Response has not been handled: %s', Pretty(payload))
docs: Get a registered handler for a given response and execute it.