It was failing because of duplication of the same annotation in IDEA JDK annotations and Kotlin JDK annotations.