void (@NotNull PsiMethodCallExpression expression) { super.visitMethodCallExpression(expression); PsiMethod psiMethod = expression.resolveMethod(); if (psiMethod != null) { PsiType returnType = psiMethod.getReturnType(); if (returnType != null) { PsiClass psiClass = PsiUtil.resolveClassInType(returnType); if (psiClass != null && !(psiClass instanceof PsiTypeParameter)) { myProcessor.process(expression, psiClass); } } } }