in src/main/kotlin/org/jetbrains/plugins/feature/suggester/statistics/FeatureSuggestersStatistics.kt [50:60]
fun sendStatistics(eventId: String, suggesterId: String) {
val sendStatistics = Registry.get("feature.suggester.send.statistics").asBoolean()
if (sendStatistics) {
EVENTS.getOrPut(eventId) {
GROUP.registerEvent(
eventId,
EventFields.StringValidatedByCustomRule(SUGGESTER_ID_FIELD, SUGGESTER_ID_VALIDATION_RULE)
)
}.log(suggesterId)
}
}