private void updatePreviewHighlighter(@NotNull EditorEx editor) {
    EditorColorsScheme scheme = editor.getColorsScheme();
    editor.getSettings().setCaretRowShown(false);
    EditorHighlighter highlighter = createHighlighter(scheme);
    if (highlighter != null) {
      editor.setHighlighter(highlighter);
    }
    else {
      LOG.warn("No highlighter for " + getDefaultLanguage());
    }
  }
private void updatePreviewHighlighter(@NotNull EditorEx editor)