@Override
  protected void restoreSelection() {
    if (!shouldSelectAll()) {
      if (mySelectedRange != null) {
        VariableInplaceRenamer.restoreSelection(myEditor, mySelectedRange.getTextRange());
      }
      else {
        myEditor.getSelectionModel().removeSelection();
      }
    }
  }
@Override
  protected void restoreSelection()