void () { setupLoadingFilter(); PsiClass aClass = myJavaFacade.findClass("pack.MyClass2", GlobalSearchScope.allScope(myProject)); PsiField field1 = aClass.getFields()[0]; PsiType type1 = field1.getType(); PsiField field2 = aClass.getFields()[1]; PsiType type2 = field2.getType(); PsiField field3 = aClass.getFields()[2]; PsiType type3 = field3.getType(); assertEquals("int", type1.getPresentableText()); assertEquals("Object[]", type2.getPresentableText()); assertEquals("Object[]", type3.getPresentableText()); assertTrue(type1.equalsToText("int")); assertTrue(type2.equalsToText("java.lang.Object[]")); assertTrue(type3.equalsToText("java.lang.Object[]")); assertTrue(!(type1 instanceof PsiArrayType)); assertTrue(type1 instanceof PsiPrimitiveType); assertTrue(!(type3 instanceof PsiPrimitiveType)); assertTrue(type3 instanceof PsiArrayType); teardownLoadingFilter(); }