Compilation issue when using double click event on a grid.

When using the below code to use double click event on a grid, I am getting the below error during compilation.

java: type argument com.vaadin.flow.component.grid.ItemDoubleClickEvent is not within bounds of type-variable T

Any idea on how to resolve this ?

blendedRateGrid.addItemDoubleClickListener(new ComponentEventListener() {
public void onComponentEvent(ItemDoubleClickEvent itemDoubleClickEvent) {