void (@NotNull Project project, @NotNull GitCommandResult commandResult, @NotNull String sourceRepositoryURL) { List<@NlsSafe String> errorLines = ContainerUtil.filter(commandResult.getErrorOutput(), line -> !ContainerUtil.exists(NON_ERROR_LINE_PREFIXES, prefix -> StringUtil.startsWithIgnoreCase(line, prefix))); String description; if (errorLines.isEmpty()) { description = DvcsBundle.message("error.description.cloning.repository.failed", sourceRepositoryURL); } else { List<HtmlChunk> displayErrorLines = ContainerUtil.map(errorLines, msg -> HtmlChunk.text(GitUtil.cleanupErrorPrefixes(msg))); description = new HtmlBuilder().appendWithSeparators(HtmlChunk.br(), displayErrorLines).toString(); } VcsNotifier.getInstance(project) .notifyError(CLONE_FAILED, DvcsBundle.message("error.title.cloning.repository.failed"), description, true); }