@Override
  public @Nullable VirtualFile getAffectedRoot(@NotNull Project project, @NotNull VirtualFile ignoreFile) {
    //ignoreFile = .git/info/exclude
    GitRepository repository = findRepository(project, ignoreFile);
    if (repository == null) return null;

    return repository.getRoot();
  }
@Override
  public @Nullable VirtualFile getAffectedRoot(@NotNull Project project, @NotNull VirtualFile ignoreFile)