@VisibleForTesting
  static @NlsContexts.NotificationContent @NotNull String getDetachedHeadErrorNotificationContent(@NotNull GitRepository repository) {
    return GitBundle.message("notification.content.detached.state.in.root.checkout.branch", mention(repository));
  }
@VisibleForTesting
  static @NlsContexts.NotificationContent @NotNull String getDetachedHeadErrorNotificationContent(@NotNull GitRepository repository)