void () { setupLoadingFilter(); PsiClass aClass = myJavaFacade.findClass("pack.MyClass2", GlobalSearchScope.allScope(myProject)); assertTrue(!aClass.isDeprecated()); PsiField field = aClass.findFieldByName("field1", false); assertTrue(field.isDeprecated()); teardownLoadingFilter(); }