void () { myFixture.addClass("package org.jetbrains.annotations;\n" + "public @interface Blocking {}"); myFixture.addClass("package org.jetbrains.annotations;\n" + "public @interface NonBlocking {}"); myFixture.addFileToProject("/TestKotlinAnnotationDetection.kt", """ import org.jetbrains.annotations.Blocking import org.jetbrains.annotations.NonBlocking @NonBlocking fun nonBlockingFunction() { <warning descr="Possibly blocking call in non-blocking context could lead to thread starvation">blockingFunction</warning>(); } @Blocking fun blockingFunction() {}"""); myFixture.testHighlighting(true, false, true, "TestKotlinAnnotationDetection.kt"); }