override fun showSuggestion()

in src/main/kotlin/org/jetbrains/plugins/feature/suggester/ui/SuggestionPresenter.kt [33:55]


    override fun showSuggestion(project: Project, suggestion: PopupSuggestion) {
        val notification = notificationGroup.createNotification(
            title = FeatureSuggesterBundle.message("notification.title"),
            content = suggestion.message,
            type = NotificationType.INFORMATION
        ).apply {
            when (suggestion) {
                is TipSuggestion -> {
                    val action = createShowTipAction(project, this, suggestion)
                    if (action != null) {
                        addAction(action)
                    }
                }
                is DocumentationSuggestion -> {
                    addAction(createGoToDocumentationAction(this, suggestion))
                }
            }
            addAction(createDontSuggestAction(this, suggestion))
        }

        notification.notify(project)
        FeatureSuggesterStatistics.sendStatistics(NOTIFICATION_SHOWED_EVENT_ID, suggestion.suggesterId)
    }