void (@NotNull Project project, @NotNull VirtualFile repositoryRoot, @NotNull @NlsSafe String name, @NotNull List<@NonNls String> args) { ArrayList<String> arguments = new ArrayList<>(args); arguments.add(name); HgCommandResult result = new HgCommandExecutor(project).executeInCurrentThread(repositoryRoot, "bookmark", arguments); getRepositoryManager(project).updateRepository(repositoryRoot); if (HgErrorUtil.hasErrorsInCommandExecution(result)) { new HgCommandResultNotifier(project) .notifyError(BOOKMARK_ERROR, result, HgBundle.message("hg4idea.hg.error"), HgBundle.message("hg4idea.bookmark.cmd.failed", repositoryRoot.getName(), name)); } }