void () { StatusBarWidgetsManager widgetManager = myProject.getService(StatusBarWidgetsManager.class); widgetManager.updateWidget(HgIncomingOutgoingWidget.IncomingFactory.class); widgetManager.updateWidget(HgIncomingOutgoingWidget.OutgoingFactory.class); }