PsiClassType (PsiMethodCallExpression call) { PsiMethod method = call.resolveMethod(); if (method == null) return null; PsiClass aClass = method.getContainingClass(); if (aClass == null) return null; return JavaPsiFacade.getElementFactory(call.getProject()).createType(aClass); }