How should I be doing this? ``` private val me...
# announcements
d
How should I be doing this?
Copy code
private val messages = HashMap<LocalizablePlugin, Map<Array<Any>, Message>>()

    internal fun getMessageKeys(localizablePlugin: LocalizablePlugin): Set<Array<Any>> {
        if (!messages.containsKey(localizablePlugin)) {
            throw IllegalArgumentException("Provider has no registered messages.")
        }
        return messages[localizablePlugin].keys
    }