private int[] calcIndicesToSelect() {
    List<Object> items = myListModel.getItems();
    if (items.isEmpty()) return ArrayUtil.EMPTY_INT_ARRAY;

    return IntStream.range(0, items.size())
      .filter(i -> mySelectedItems.contains(items.get(i)))
      .toArray();
  }
private int[] calcIndicesToSelect()