public @NotNull List<FileBasedIndex.AllKeysQuery<?, ?>> toFileBasedIndexQueries() {
      Condition<Integer> contextCondition = myContext == null ? null : matchContextCondition(myContext);

      FileBasedIndex.AllKeysQuery<IdIndexEntry, Integer> idIndexQuery =
        new FileBasedIndex.AllKeysQuery<>(IdIndex.NAME, myIdIndexEntries, contextCondition);

      if (myUseOnlyWeakHashToSearch || myTrigrams.isEmpty()) {
        // short words don't produce trigrams
        return Collections.singletonList(idIndexQuery);
      }

      if (IdIndexEntry.useStrongerHash()) {
        return Collections.singletonList(idIndexQuery);
      }

      FileBasedIndex.AllKeysQuery<Integer, Void> trigramIndexQuery =
        new FileBasedIndex.AllKeysQuery<>(TrigramIndex.INDEX_ID, myTrigrams, null);
      return Arrays.asList(idIndexQuery, trigramIndexQuery);
    }
public @NotNull List<FileBasedIndex.AllKeysQuery<?, ?>> toFileBasedIndexQueries()