@Nullable protected TagsExtractor getQuickTextTagsSearcher() {
    return mTagsExtractor;
  }
@Test
  public void testUnrelatedOnSharedPreferenceChangedDoesNotCreateSearcher() throws Exception {
    Object searcher = mAnySoftKeyboardUnderTest.getQuickTextTagsSearcher();
    Assert.assertNotNull(searcher);
    // unrelated pref change, should not create a new searcher
    SharedPrefsHelper.setPrefsValue(R.string.settings_key_allow_suggestions_restart, false);
    Assert.assertSame(searcher, mAnySoftKeyboardUnderTest.getQuickTextTagsSearcher());

    SharedPrefsHelper.setPrefsValue(R.string.settings_key_search_quick_text_tags, false);
    Assert.assertSame(
        TagsExtractorImpl.NO_OP, mAnySoftKeyboardUnderTest.getQuickTextTagsSearcher());

    SharedPrefsHelper.setPrefsValue(R.string.settings_key_allow_suggestions_restart, true);
    Assert.assertSame(
        TagsExtractorImpl.NO_OP, mAnySoftKeyboardUnderTest.getQuickTextTagsSearcher());
  }