Revert "Simplify stream operations with anyMatch()"

This reverts commit 07c668f8eab6235919864f82fb2e58e3f393fc31 [1].

Reason for revert:
In Bug 69845539, we successfully migrated the following tests from
host-side to device-side [2][3].

 - InputMethodServiceDeviceTest#testSearchView_giveFocusShowIme1()
 - InputMethodServiceDeviceTest#testSearchView_setQueryHideIme1()
 - InputMethodServiceDeviceTest#testOnStartInputCalledOnceIme1()

To cleanly revert those CTS tests from InputMethodServiceDeviceTest,
this reverts one dependent CL, which is purely a code clean-up and
should have no behavior change.

 [1]: I4698d956d6378c901b0c5255a664dcd08c1ef1e6
 [2]: I90c306ec3ce15662717d3b17b833db6c2072c2ca
      e3d0c68f1bdc72f4d9ebfc08840344a1bc1bbe6f
 [3]: I23523861161751153d58fee4de93fe26e074366f
      2b221fe33e3c20b034f33ac23b1062cb37172f82

Bug: 7542467
Bug: 35336548
Bug: 70538611
Change-Id: I67dcbe2f9032e6a834e0a83c6fa296af0e83416f
1 file changed