void () { final int count = getElementCount(); for (int i = 0; i < count; i++) { T type = getElementAt(i); setElementMarked(type, !isElementMarked(type)); } myStatisticsCollectors.forEach(StatisticsCollector::selectionInverted); }