void checkSelectionOnSilentReplace(@NotNull T oldItem, @NotNull T newItem) {
      if (mySelection == oldItem) {
        mySelection = newItem;
      }
    }
void checkSelectionOnSilentReplace(@NotNull T oldItem, @NotNull T newItem)