private fun MutableMap<TrackingProtectionCategory, MutableList<TrackerLog>>.addTrackerHost( key: TrackingProtectionCategory, tracker: TrackerLog, ) { getOrPut(key) { mutableListOf() }.add(tracker) } }
Add the hostname of the [TrackerLog] into the map for the given [TrackingProtectionCategory].