imho you can (untested):
```python
if self.plugin_json:
    downloadable_plugins = tuple([p['id'] for p in self.plugin_json['plugins']])
else:
    downloadable_plugins = ()
for plugin in plugins:
    enabled = plugin.module_name in enabled_plugins
    bold = plugin.module_name in downloadable_plugins
    item = self.add_plugin_item(plugin, enabled=enabled, bold=bold)
```