void () { resultWrapper.setRejected(); String title = GradleBundle.message("gradle.notifications.sources.download.failed.title"); String message = GradleBundle.message("gradle.notifications.sources.download.failed.content", artifactCoordinates); NotificationData notification = new NotificationData(title, message, NotificationCategory.WARNING, NotificationSource.PROJECT_SYNC); notification.setBalloonNotification(true); ExternalSystemNotificationManager.getInstance(project).showNotification(GradleConstants.SYSTEM_ID, notification); }