inline fun , V> enumMapOf(vararg pairs: Pair): EnumMap { val map = EnumMap(K::class.java) pairs.forEach { map.put(it.first, it.second) } return map }