public static @NotNull @Nls String formatMessage(@Nullable String currentBranch, @Nullable String baseBranch, boolean withCheckout) {
    if (withCheckout) {
      return GitBundle.message(
        "rebase.notification.successful.rebased.checkout.message",
        convertBooleanToInt(currentBranch != null), currentBranch,
        convertBooleanToInt(baseBranch != null), baseBranch);
    }
    else {
      return GitBundle.message(
        "rebase.notification.successful.rebased.message",
        convertBooleanToInt(currentBranch != null), currentBranch,
        convertBooleanToInt(baseBranch != null), baseBranch);
    }
  }
public static @NotNull @Nls String formatMessage(@Nullable String currentBranch, @Nullable String baseBranch, boolean withCheckout)