void () { PsiClass aClass = getFile("MyClass").getClasses()[0]; PsiType type1 = aClass.getFields()[0].getType(); assertNull(PsiUtil.resolveClassInType(type1)); PsiType type2 = aClass.getFields()[1].getType(); PsiType componentType = ((PsiArrayType)type2).getComponentType(); assertTrue(componentType instanceof PsiClassType); assertTrue(componentType.equalsToText(CommonClassNames.JAVA_LANG_OBJECT)); assertEquals(CommonClassNames.JAVA_LANG_OBJECT_SHORT, componentType.getPresentableText()); PsiElement target = PsiUtil.resolveClassInType(type2); assertEquals(myObjectClass, target); }