public void clearSelection(boolean notify) {

        HashMap<Integer, SectionSelectionState> selectionState = notify ? new HashMap<>(selectionStateBySection) : null;
        selectionStateBySection = new HashMap<>();

        if (notify) {

            // walk the selection state and update the items which were selected
            for (int sectionIndex : selectionState.keySet()) {
                SectionSelectionState state = selectionState.get(sectionIndex);

                if (state.section) {
                    notifySectionDataSetChanged(sectionIndex);
                } else {
                    for (int i = 0, s = state.items.size(); i < s; i++) {
                        if (state.items.valueAt(i)) {
                            notifySectionItemChanged(sectionIndex, state.items.keyAt(i));
                        }
                    }
                    if (state.footer) {
                        notifySectionFooterChanged(sectionIndex);
                    }
                }
            }
        }
    }
Clear selection state

@param notify if true, notifies data change for recyclerview, if false, silent
android/modules/module_common/src/main/java/github/tornaco/android/thanos/widget/section/SectioningAdapter.java