Why can't I call TreeMap.getOrDefault(key)?

java.util.HashMap is a Java class and not mapped to anything, so Kotlin sees all of its members (other than those inherited from Map and never overridden, which I believe are non-existent).