void (@NotNull GitRepository repository, @NotNull GitLocalBranch currentBranch) { VcsNotifier.getInstance(repository.getProject()) .notifyError( UPDATE_NO_TRACKED_BRANCH, GitBundle.message("update.notification.update.error"), getNoTrackedBranchError(repository, currentBranch.getName()), NotificationAction.createSimple( GitBundle.message("update.notification.choose.upstream.branch"), () -> { showUpdateDialog(repository); }) ); }