JetPsiPrecedences rewritten in Kotlin