public int groupIndexOf(final int group, final T object) {
        return groupIndexOf(group, o -> Objects.equals(o, object));
    }
returns the list index for the first object found in given group, or -1 if there's no such object
main/src/main/java/cgeo/geocaching/utils/GroupedList.java