public void markElements(Collection<? extends T> elements, S markState) {
    int[] rows = new int[elements.size()];
    int index = 0;
    for (final T element : elements) {
      rows[index++] = myTableModel.getElementRow(element);
    }
    myTableModel.setMarkState(rows, markState);
  }
public void markElements(Collection<? extends T> elements, S markState)