void () { for (Project project : ProjectManager.getInstance().getOpenProjects()) { project.getService(StatusBarWidgetsManager.class).updateWidget(StatusBarManager.class); IdeFrame frame = WindowManager.getInstance().getIdeFrame(project); if (frame != null) { StatusBar statusBar = frame.getStatusBar(); if (statusBar != null) { statusBar.updateWidget(WIDGET_ID); } } } }