void restoreCaretLocations() {
    for (Map.Entry<Editor, Integer> entry : myCaretOffsets.entrySet()) {
      entry.getKey().getCaretModel().moveToOffset(entry.getValue());
    }
  }
void restoreCaretLocations()