java – How inherent to a generic method in Kotlin?

I'm trying to override a method that has some generics in its signature, but an error message appears onBindViewHolder cancels nothing.

Here is the base class in java:

public abstract class FourPartItemRecyclerViewAdapter {

@Cancel
public void onBindViewHolder (@NonNull VIEW_HOLDER holder, int position, @NonNull List payloads {
if (payloads.isEmpty () || hasNonDataBindingInvalidate (payloads, TAG)) {

Element ITEM = getItem (position);
if (item! = null) {
holder.setItem (article);
holder.getBinding (). executePendingBindings ();
}
}
}

@Cancel
public final empty inBindViewHolder (@NonNull VIEW_HOLDER holder, int position) {
launch a new IllegalArgumentException ("Use onBindViewHolder (ItemViewHolder) holder, int position, list payloads) instead ");
}
}

Here is the signature of the class of the inherited middle class. Keep in mind that it does not replace the onBindViewHolder method.

public class ConversationItemsAdapter extends FourPartItemRecyclerViewAdapter <ConversationItemModel,
Conversation ArticleVHModel, XdkUiFourPartItemBinding, FourPartItemStyle,
FourPartItemVH> {

And here is the lower level hereditary class (in Kotlin):

ConversationItemsAdapter class @Inject constructor (layerClient: LayerClient?, itemViewModelFactory: Factory?)
: ConversationItemsAdapter (layerClient, itemViewModelFactory) {
private var mSelectedItem: SEE? = null

undo the fun inBindViewHolder (incumbent: VIEW_HOLDER, position: Int, payloads: List) {
if (payloads.isEmpty () || hasNonDataBindingInvalidate (payloads, TAG)) {

article val = getItem (position)
if (item! = null) {
holder.setItem (item)
if (item == mSelectedItem) {
val color = Color.argb (255, 220, 220, 220)
holder.itemView.setBackgroundColor (color)
} else {
val color = Color.argb (0, 0, 0, 0)
holder.itemView.setBackgroundColor (color)
}

holder.getBinding (). executePendingBindings ()
}
}
}
}

The error is in this last class below the text. cancel for the fun annul onBindViewHolder method.