void (final @NotNull Project project, @NonNls @Nullable String displayId, final @NotNull VirtualFile root, final @NotNull String operationName, final @NotNull Collection<String> relativeFilePaths) { final Collection<String> absolutePaths = GitUtil.toAbsolute(root, relativeFilePaths); final List<Change> changes = GitUtil.findLocalChangesForPaths(project, root, absolutePaths, false); String notificationTitle = GitBundle.message("notification.title.git.operation.failed", StringUtil.capitalize(operationName)); VcsNotifier.getInstance(project) .notifyError(displayId, notificationTitle, getErrorNotificationDescription(), new NotificationListener.Adapter() { @Override protected void hyperlinkActivated(@NotNull Notification notification, @NotNull HyperlinkEvent e) { showErrorDialog(project, operationName, changes, absolutePaths); } } ); }