void () { PsiFile psiFile = myFixture.configureByFile("lib/p/TestPrimitive.java"); PsiTestUtil.addSourceRoot(myFixture.getModule(), psiFile.getVirtualFile().getParent()); assertNotAvailable("NotNull"); assertFalse(((PsiMethod)getOwner()).isDeprecated()); myFixture.launchAction(getAnnotateAction("Deprecated")); assertTrue(((PsiMethod)getOwner()).isDeprecated()); }