in src/main/kotlin/com/intellij/internal/statistic/eventLog/validator/SensitiveDataValidator.kt [62:69]
fun validateReport(report: ValidatedFusReport): ValidatedFusReport? {
val records = report.records.mapNotNull { rec ->
val safeEvents = rec.events.mapNotNull { validateEvent(it) }
if (safeEvents.isNotEmpty()) ValidatedFusRecord(safeEvents) else null
}
if (records.isEmpty()) return null
return ValidatedFusReport(report.product, report.device, report.recorder, report.internal, records)
}