private void createCaretRangeMarker() {
    int offset = myEditor.getCaretModel().getOffset();
    myCaretRangeMarker = myEditor.getDocument().createRangeMarker(offset, offset);
    myCaretRangeMarker.setGreedyToLeft(true);
    myCaretRangeMarker.setGreedyToRight(true);
  }
private void createCaretRangeMarker()