void () { NotificationAction viewFilesAction = NotificationAction.createSimple(VcsBundle.messagePointer("action.NotificationAction.VFSListener.text.view.files"), () -> { List<FilePath> filePaths = ContainerUtil.map(failedToMove, movedInfo -> movedInfo.getOldPath()); DialogWrapper dialog = new ProcessedFilePathsDialog(myProject, filePaths); dialog.setTitle(HgBundle.message("hg4idea.rename.error.title")); dialog.show(); }); NotificationAction retryAction = NotificationAction.createSimpleExpiring(HgBundle.message("retry"), () -> performMoveRename(failedToMove)); VcsNotifier.getInstance(myProject) .notifyError(RENAME_FAILED, HgBundle.message("hg4idea.rename.error"), HgBundle.message("hg4idea.rename.error.msg"), viewFilesAction, retryAction); }