void (@NotNull Project project, int reportsCount, @NotNull @Nls String notificationMessage) { int extraReportsCount = reportsCount - 1; if (extraReportsCount > 0) { notificationMessage += ExternalSystemBundle.message("duplicate.content.roots.extra", extraReportsCount); } Notification notification = new Notification("Content root duplicates", ExternalSystemBundle.message("duplicate.content.roots.detected"), notificationMessage, NotificationType.WARNING); Notifications.Bus.notify(notification, project); }