def METHOD_NAME(self, widget, *args):
    if widget.get_active():
        create_gtk_user_override(self.settings, "gtk4", self)
    else:
        remove_gtk_user_override(self.settings, "gtk4", self)
    logging.debug(
        f"user-flatpak-theming-gtk4: {self.settings.get_boolean('user-flatpak-theming-gtk4')}"
    )