@Override
  public boolean isInSearchableScope(@NotNull VirtualFile file, @NotNull Project project) {
    FileType fileType = file.getFileType();
    return !file.isDirectory() &&
           TrigramIndex.isIndexable(file, project) &&
           !ProjectCoreUtil.isProjectOrWorkspaceFile(file, fileType) &&
           !SingleRootFileViewProvider.isTooLargeForIntelligence(file);
  }
@Override
  public boolean isInSearchableScope(@NotNull VirtualFile file, @NotNull Project project)