class ListUtils {

    public static <Item> SparseBooleanArray getInsertions(@Nullable List<? extends Item> oldList, @NonNull List<? extends Item> newList){
        SparseBooleanArray list = new SparseBooleanArray();
        if(oldList != null) {
            int size = newList.size();
            for (int newIndex = 0; newIndex < size; newIndex++) {
                Item itemFromNewList = newList.get(newIndex);
                if (oldList.indexOf(itemFromNewList) == NOT_PRESENT) {
                    list.put(newIndex, true);
                }
            }
        }
        return list;
    }

}