Split out monitor methods out of AnyRef to a separate trait


#1

I thought about this, because we have Scala-js and Scala-native now, And I found :

https://github.com/lampepfl/dotty/issues/1043 .

So I just reposted it here.


#2

Hm,I have to reference two link from Kotlin



https://kotlinlang.org/docs/reference/java-interop.html#object-methods