def METHOD_NAME(self, name: str) -> None:
    events = self._module_basename('qapi-events', name)
    types = self._module_basename('qapi-types', name)
    visit = self._module_basename('qapi-visit', name)
    self._genc.add(mcgen('''