void () { String message = GitBundle.message("delete.tag.operation.deleted.tag", myTagName); Notification notification = STANDARD_NOTIFICATION.createNotification("", message, NotificationType.INFORMATION); notification.setDisplayId(GitNotificationIdsHolder.TAG_DELETED); notification.addAction(NotificationAction.createSimple(GitBundle.messagePointer( "action.NotificationAction.GitDeleteTagOperation.text.restore"), () -> restoreInBackground(notification))); int remotes = 0; for (GitRepository repository: getRepositories()) { remotes += repository.getRemotes().size(); } if (remotes > 0) { String text = GitBundle.message("delete.tag.operation.delete.on.remote", remotes); notification.addAction(NotificationAction.createSimple(text, () -> pushRemotesInBackground())); } myNotifier.notify(notification); }