@Override
  public @NotNull TextSearchResult processFilesWithText(@NotNull String text,
                                                        Processor<? super VirtualFile> processor,
                                                        @NotNull GlobalSearchScope scope) {
    IntSet keys = TrigramBuilder.getTrigrams(text);
    if (keys.isEmpty()) return TextSearchResult.NO_TRIGRAMS;
    return FileBasedIndex.getInstance().getFilesWithKey(TrigramIndex.INDEX_ID, keys, f -> {
      ProgressManager.checkCanceled();
      return processor.process(f);
    }, scope)
           ? TextSearchResult.FINISHED
           : TextSearchResult.STOPPED;
  }
@Override
  public @NotNull TextSearchResult processFilesWithText(@NotNull String text,
                                                        Processor<? super VirtualFile> processor,
                                                        @NotNull GlobalSearchScope scope)