def METHOD_NAME(self, type_: "SimType", cvariable: CVariable = None):
    self._cvariable = cvariable
    if cvariable is not None and isinstance(cvariable.unified_variable, SimVariable):
        type_str = type_.c_repr(name=cvariable.unified_variable.name)
    else:
        type_str = type_.c_repr(name="foobar")
    self.setText(type_str)