private static HighlighterIterator createLexerIterator(Editor editor, int offset) {
    if (editor.getDocument().getTextLength() == 0) return null;
    return editor.getHighlighter().createIterator(offset);
  }
private static HighlighterIterator createLexerIterator(Editor editor, int offset)