void () { myFixture.addClass("package org.jetbrains.annotations;\n" + "public @interface NonBlocking {}"); myFixture.configureByText("/TestKotlinThrowsTypeDetection.kt", """ import org.jetbrains.annotations.NonBlocking import java.net.URL @NonBlocking fun nonBlockingFunction() { Thread.<warning descr="Possibly blocking call in non-blocking context could lead to thread starvation">sleep</warning>(111); \s URL("https://example.com") }"""); myFixture.checkHighlighting(true, false, true); }