Creates a new Selection.
Selection(Set<int> selectedIndexes) : selectedIndexes = UnmodifiableSetView(Set.of(selectedIndexes));