public @NotNull ProgressIndicator createProgressIndicator(boolean visible, @NotNull ProgressKey key) {
    if (ApplicationManager.getApplication().isHeadlessEnvironment()) {
      return new EmptyProgressIndicator();
    }
    return new VcsLogProgressIndicator(visible, key);
  }
public @NotNull ProgressIndicator createProgressIndicator(boolean visible, @NotNull ProgressKey key)