@Override
    public void onBindViewHolder(@NonNull final ViewHolder holder, final int position) {
        final Element element = mElements.get(position);
        if (element != null) {
            updateGroupItemViewHolder(holder, element);
            if(position == mElements.size() - 1) {
                holder.mDivider.setVisibility(View.GONE);
            }
        }
    }
Sets the item click listener for the adapter

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