PsiClassType (MethodSignature signature, PsiMethodReferenceUtil.QualifierResolveResult qualifierResolveResult, PsiMember member, PsiMethodReferenceExpression methodReferenceExpression, PsiClass qContainingClass) { if (member instanceof PsiMethod && PsiMethodReferenceUtil.isSecondSearchPossible(signature.getParameterTypes(), qualifierResolveResult, methodReferenceExpression)) { PsiClassType subclassType = StrictSubtypingConstraint.getSubclassType(qContainingClass, signature.getParameterTypes()[0], true); if (subclassType != null && !subclassType.isRaw()) { return subclassType; } } return null; }