void (@NotNull Project project, @NotNull String message) { String title = StatisticsBundle.message("stats.feature.usage.statistics"); new Notification(STATISTICS_NOTIFICATION_GROUP_ID, title, message, NotificationType.WARNING) .addAction(NotificationAction.createSimple( StatisticsBundle.message("stats.enable.data.sharing"), () -> new SingleConfigurableEditor(project, new ConsentConfigurable()).show())) .notify(project); }