int semanticIndex(int index) { if (specialItemPosition != SpecialItemPosition.prepend) { return index + 1; } return index; }