void () { addJavaxNullabilityAnnotations(myFixture); myFixture.addClass("package bar;" + "@javax.annotation.meta.TypeQualifierDefault(java.lang.annotation.ElementType.METHOD) @javax.annotation.Nonnull " + "public @interface MethodsAreNotNullByDefault {}"); myFixture.addClass("package foo; public class AnotherPackageNotNull { public static native Object foo(String s); }"); myFixture.addFileToProject("foo/package-info.java", "@bar.MethodsAreNotNullByDefault package foo;"); myFixture.enableInspections(new DataFlowInspection(), new ConstantValueInspection()); myFixture.testHighlighting(true, false, true, getTestName(false) + ".java"); }