void () { setupLoadingFilter(); PsiClass aClass = myJavaFacade.findClass("pack.MyClass2", GlobalSearchScope.allScope(myProject)); PsiType type1 = aClass.getFields()[1].getType(); PsiElement target1 = PsiUtil.resolveClassInType(type1); assertNotNull(target1); PsiClass objectClass = myJavaFacade.findClass(CommonClassNames.JAVA_LANG_OBJECT, GlobalSearchScope.allScope(myProject)); assertEquals(objectClass, target1); PsiType type2 = aClass.getFields()[1].getType(); PsiElement target2 = PsiUtil.resolveClassInType(type2); assertNotNull(target2); assertEquals(objectClass, target2); teardownLoadingFilter(); }