// FIR_IDENTICAL // FILE: ClassWithExternalAnnotatedMembers.java import org.jetbrains.annotations.NotNull; public class ClassWithExternalAnnotatedMembers { public String externalNotNullMethod() { return ""; } @NotNull public String explicitNotNullMethod() { return ""; } public static String staticExternalNotNullMethod() { return ""; } @NotNull public static String staticExplicitNotNullMethod() { return ""; } } // FILE: usage.kt fun test() { val x = ClassWithExternalAnnotatedMembers() x.externalNotNullMethod()?.foo() x.explicitNotNullMethod()?.foo() ClassWithExternalAnnotatedMembers.staticExternalNotNullMethod()?.foo() ClassWithExternalAnnotatedMembers.staticExplicitNotNullMethod()?.foo() } fun String.foo() { } // FILE: annotations.xml