@RequiresApi(Build.VERSION_CODES.R)
  @Override
  public boolean onInlineSuggestionsResponse(@NonNull InlineSuggestionsResponse response) {
    final List<InlineSuggestion> inlineSuggestions = response.getInlineSuggestions();

    if (inlineSuggestions.size() > 0) {
      mInlineSuggestionAction.onNewSuggestions(inlineSuggestions);
      getInputViewContainer().addStripAction(mInlineSuggestionAction, true);
      getInputViewContainer().setActionsStripVisibility(true);
    }

    return !inlineSuggestions.isEmpty();
  }
@Test
  public void testClosesInlineSuggestionsOnPick() {
    simulateOnStartInputFlow();
    var inlineView1 = Mockito.mock(InlineContentView.class);
    var inlineView2 = Mockito.mock(InlineContentView.class);
    mAnySoftKeyboardUnderTest.onInlineSuggestionsResponse(mockResponse(inlineView1, inlineView2));
    var rootView =
        mAnySoftKeyboardUnderTest
            .getInputViewContainer()
            .findViewById(R.id.inline_suggestions_strip_root);

    Shadows.shadowOf(rootView).getOnClickListener().onClick(rootView);

    var lister =
        (ScrollViewAsMainChild)
            mAnySoftKeyboardUnderTest
                .getInputViewContainer()
                .findViewById(R.id.inline_suggestions_list);

    Assert.assertEquals(
        View.GONE, ((View) mAnySoftKeyboardUnderTest.getInputView()).getVisibility());

    Assert.assertEquals(2, lister.getItemsCount());

    Mockito.verify(inlineView1).setOnClickListener(Mockito.notNull());
    Mockito.verify(inlineView2).setOnClickListener(Mockito.notNull());

    /*due to inability to test InlineContentView, I have to remove the following checks*/
    //        clickCaptor.getValue().onClick(inlineView1);
    //
    //        Assert.assertEquals(0, lister.getChildCount());
    //        Assert.assertEquals(
    //                View.VISIBLE, ((View)
    // mAnySoftKeyboardUnderTest.getInputView()).getVisibility());
    //        Assert.assertNull(
    //                mAnySoftKeyboardUnderTest
    //                        .getInputViewContainer()
    //                        .findViewById(R.id.inline_suggestions_scroller));
  }