void () { PsiClass clazz = myFixture.addClass("import org.jetbrains.annotations.*;" + "interface Foo {" + " String @NotNull [] read();" + "}"); assertEquals(Nullability.NOT_NULL, DfaPsiUtil.getTypeNullability(clazz.getMethods()[0].getReturnType())); assertFalse(((PsiFileImpl)clazz.getContainingFile()).isContentsLoaded()); }