String (@NotNull List<PluginId> conflictingPlugins, boolean isConflictWithPlatform) { final int pluginsNumber = conflictingPlugins.size(); if (isConflictWithPlatform) { return DiagnosticBundle.message("error.dialog.conflict.plugin.header.platform", pluginsNumber); } else { final List<String> names = conflictingPlugins.stream() .map(PluginConflictDialog::getPluginNameOrId) .map(s -> "<b>" + s + "</b>") .collect(Collectors.toList()); return DiagnosticBundle.message("error.dialog.conflict.plugin.header.each.other", StringUtil.join(names.subList(0, pluginsNumber - 1), ", "), names.get(pluginsNumber - 1)); } }