private void updateGroupItemViewHolder(final ViewHolder holder, final Element element) {
        final Context context = holder.itemView.getContext();
        holder.elementTitle.setText(MeshAddress.formatAddress(element.getElementAddress(), true));
        holder.mModelContainer.removeAllViews();
        for (Map.Entry<Integer, MeshModel> modelEntry : element.getMeshModels().entrySet()) {
            final MeshModel model = modelEntry.getValue();
            for (Integer address : model.getSubscribedAddresses()) {
                if (mGroup.getAddress() == address) {
                    final GroupModelItemBinding binding = GroupModelItemBinding.inflate(LayoutInflater.from(holder.itemView.getContext()), holder.mModelContainer, false);
                    final ConstraintLayout container = binding.container;
                    final ImageView modelIcon = binding.icon;
                    final TextView modelTitle = binding.modelTitle;
                    modelTitle.setText(model.getModelName());
                    if(MeshParserUtils.isVendorModel(model.getModelId())){
                        modelIcon.setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_domain_nordic_medium_gray));
                    } else {
                        switch (model.getModelId()) {
                            case SigModelParser.GENERIC_ON_OFF_SERVER:
                                modelIcon.setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_lightbulb_outline_24dp));
                                break;
                            case SigModelParser.GENERIC_ON_OFF_CLIENT:
                                modelIcon.setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_light_switch_24dp));
                                break;
                            case SigModelParser.GENERIC_LEVEL_SERVER:
                                modelIcon.setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_lightbulb_level_24dp));
                                break;
                            default:
                                modelIcon.setImageDrawable(ContextCompat.getDrawable(context, R.drawable.ic_help_outline_24dp));
                                break;
                        }
                    }
                    container.setOnClickListener(v -> mOnItemClickListener.onModelItemClick(element, model));
                    holder.mModelContainer.addView(binding.getRoot());
                }
            }
        }
    }
Sets the item click listener for the adapter

@param listener {@link OnItemClickListener}
app/src/main/java/no/nordicsemi/android/nrfmesh/adapter/GroupModelAdapter.java