@Override
  public void onCaretPositionChanged(CaretEvent e) {
    if (myCloseSearchResultsList.getSelectedIndex() != -1
        && e.getEditor().getCaretModel().getOffset() != myCloseSearchResultsList.getSelectedValue().startPosition.symbolOffsetInPage
        && e.getEditor().getCaretModel().getOffset() != 0) {
      myCloseSearchResultsList.clearSelection();
    }
  }
@Override
  public void onCaretPositionChanged(CaretEvent e)