def METHOD_NAME(self, param: Pmd2PatchParameter):
    if param.type == Pmd2PatchParameterType.INTEGER or param.type == Pmd2PatchParameterType.STRING:
        entry = Gtk.Entry()
        if param.default:
            entry.set_text(str(param.default))
        return entry
    elif param.type == Pmd2PatchParameterType.SELECT:
        combobox_text: Gtk.ComboBoxText = Gtk.ComboBoxText()
        assert param.options
        for option in param.options:
            combobox_text.append(str(option.value), option.label)
        combobox_text.set_active(0)
        return combobox_text
    raise TypeError(f"Unknown parameter type {param.type}")