highlightManager.hideHighlights(grammarEditor, HighlightManager.HIDE_BY_ESCAPE | HighlightManager.HIDE_BY_ANY_KEY);
}
else {
updateGrammarHighlighters(project, editor, livePreviewLanguage, grammarEditor);
caretListener = new CaretAdapter() {
@Override
public void caretPositionChanged(final CaretEvent e) {
final CaretListener caretListener = this;
LivePreviewHelper.getUpdateQueue(project).queue(new Update(e.getEditor()) {
@Override