replace java AnnotationUtils with Kotlin code