void () { myFixture.configureByFile("pkg/TA.java"); doTest(); for (PsiParameter parameter : PsiTreeUtil.findChildrenOfType(myFixture.getFile(), PsiParameter.class)) { PsiTypeElement typeElement = parameter.getTypeElement(); assertNotNull(typeElement); PsiJavaCodeReferenceElement ref = typeElement.getInnermostComponentReferenceElement(); assertNotNull(ref); PsiAnnotation annotation = PsiTreeUtil.getChildOfType(ref, PsiAnnotation.class); assertNull(annotation); } }