void (boolean enabled) { StatusBarWidgetSettings.getInstance().setEnabled(myWidgetFactory, enabled); for (Project project : ProjectManager.getInstance().getOpenProjects()) { project.getService(StatusBarWidgetsManager.class).updateWidget(myWidgetFactory); } }