protected void replace(int from, int to, List<T> newData) {
    if (to > from) {
      myData.subList(from, to).clear();
      fireIntervalRemoved(this, from, to - 1);
    }
    if (!newData.isEmpty()) {
      myData.addAll(from, newData);
      fireIntervalAdded(this, from, from + newData.size() - 1);
    }
  }
protected void replace(int from, int to, List<T> newData)