void () { setupLoadingFilter(); PsiClass aClass = myJavaFacade.findClass("pack.MyClass2", GlobalSearchScope.allScope(myProject)); PsiMethod method1 = aClass.getMethods()[0]; PsiType type1 = method1.getReturnType(); assertTrue(type1.equalsToText("void")); assertTrue(!(type1 instanceof PsiArrayType)); assertTrue(type1 instanceof PsiPrimitiveType); PsiMethod method3 = aClass.getMethods()[2]; assertNull(method3.getReturnType()); teardownLoadingFilter(); }