public int getModelCount(final int position) {
        if (position >= 0 && !differ.getCurrentList().isEmpty() && position < differ.getCurrentList().size()) {
            return differ.getCurrentList().get(position).getSubscribedModels();
        }
        return 0;
    }
Returns the number of models associated to the group in a particular position

@param position position
app/src/main/java/no/nordicsemi/android/nrfmesh/adapter/GroupAdapter.java