@Override
    public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) {
        mAdapter.onItemDismiss((RemovableViewHolder) viewHolder);
    }
This callback works with {@link RemovableViewHolder}. Only view holders that inherit from this class may be removed.
app/src/main/java/no/nordicsemi/android/nrfmesh/widgets/RemovableItemTouchHelperCallback.java