void (@NonNls final String testPath) { myFixture.configureByFile(testPath); final PsiFile file = myFixture.getFile(); final Editor editor = myFixture.getEditor(); assertNotAvailable("NotNull"); assertNotAvailable("Nullable"); final DeannotateIntentionAction deannotateFix = new DeannotateIntentionAction(); assertNotNull(deannotateFix.getPresentation(myFixture.getActionContext())); final PsiModifierListOwner container = AddAnnotationPsiFix.getContainer(file, editor.getCaretModel().getOffset()); assertNotNull(container); startListening(container, AnnotationUtil.NOT_NULL, true); ExternalAnnotationsManager.getInstance(myFixture.getProject()).deannotate(container, AnnotationUtil.NOT_NULL); stopListeningAndCheckEvents(); FileDocumentManager.getInstance().saveAllDocuments(); getAnnotateAction("NotNull"); getAnnotateAction("Nullable"); assertNull(deannotateFix.getPresentation(myFixture.getActionContext())); }