private static void updateRainbowMarkup(@NotNull EditorColorsScheme scheme) {
    Set<String> languagesWithRainbowHighlighting = getRainbowOnLanguageIds(scheme);
    reportStatistic(languagesWithRainbowHighlighting);

    RainbowHighlighter.resetRainbowGeneratedColors(scheme);
    ApplicationManager
      .getApplication()
      .getMessageBus()
      .syncPublisher(RainbowStateChangeListener.getTOPIC())
      .onRainbowStateChanged(scheme, languagesWithRainbowHighlighting);

    Editor[] allEditors = EditorFactory.getInstance().getAllEditors();
    for (Editor editor : allEditors) {
      final Project project = editor.getProject();
      if (project != null) {
        PsiFile file = PsiDocumentManager.getInstance(project).getPsiFile(editor.getDocument());
        if (file != null) {
          DaemonCodeAnalyzer.getInstance(project).restart(file);
        }
      }
    }
  }
private static void updateRainbowMarkup(@NotNull EditorColorsScheme scheme)