code: def send_refactor_request(self, ref_type, ref_params, ref_options):
          
          request = {
              "typehint": ref_type,
              "procId": self.refactor_id,
              "params": ref_params
          }
          f = ref_params["file"]
          self.refactorings[self.refactor_id] = f
          self.refactor_id += 1
          request.update(ref_options)
          self.send_request(request)
docs: Send a refactor request to the Ensime server.
  
          The `ref_params` field will always have a field `type`.