Kotlin : Privileged operation in public method