@Override
  public boolean contains(@NotNull VirtualFile file) {
    if (file instanceof ProjectAwareVirtualFile) {
      return ((ProjectAwareVirtualFile)file).isInProject(Objects.requireNonNull(getProject()));
    }
    return myFileIndex.isInProjectScope(file);
  }
@Override
  public boolean contains(@NotNull VirtualFile file)