def METHOD_NAME(self):
    for plugin_name in self.plugins_checkboxes:
        cb, previous_state = self.plugins_checkboxes[plugin_name]
        if cb.isChecked() and not previous_state:
            self.plugin.set_plugin_enabled(plugin_name)
            PluginClass = None
            external = False
            if plugin_name in self.plugin.all_internal_plugins:
                (__,
                 PluginClass) = self.plugin.all_internal_plugins[plugin_name]
            elif plugin_name in self.plugin.all_external_plugins:
                (__,
                 PluginClass) = self.plugin.all_external_plugins[plugin_name]
                external = True  # noqa
            # TODO: Once we can test that all plugins can be restarted
            # without problems during runtime, we can enable the
            # autorestart feature provided by the plugin registry:
            # self.plugin.register_plugin(self.main, PluginClass,
            #                             external=external)
        elif not cb.isChecked() and previous_state:
            # TODO: Once we can test that all plugins can be restarted
            # without problems during runtime, we can enable the
            # autorestart feature provided by the plugin registry:
            # self.plugin.delete_plugin(plugin_name)
            pass
    return set({})