private static void setStatusBarText(@NlsContexts.StatusBarText String statusBarText) {
    if (ApplicationManager.getApplication() == null || !LoadingState.COMPONENTS_REGISTERED.isOccurred()) return; // makes this component work in UIDesigner preview.
    final Project[] projects = ProjectManager.getInstance().getOpenProjects();
    for (Project project : projects) {
      StatusBar.Info.set(statusBarText, project);
    }
  }
private static void setStatusBarText(@NlsContexts.StatusBarText String statusBarText)