@Override
  public boolean accept(@NotNull VirtualFile file) {
    if (!filter.accept(file)) {
      return false;
    }

    if (fileIndex == null) {
      fileIndex = ProjectRootManager.getInstance(project).getFileIndex();
    }
    return fileIndex.isInContent(file);
  }
@Override
  public boolean accept(@NotNull VirtualFile file)