void (@NotNull PsiLambdaExpression lambdaExpression) { PsiElement body = lambdaExpression.getBody(); PsiExpression asMethodReference = LambdaCanBeMethodReferenceInspection .canBeMethodReferenceProblem(body, lambdaExpression.getParameterList().getParameters(), lambdaExpression.getFunctionalInterfaceType(), null); if (asMethodReference instanceof PsiMethodCallExpression) { PsiReferenceExpression methodExpression = ((PsiMethodCallExpression)asMethodReference).getMethodExpression(); PsiExpression qualifierExpression = methodExpression.getQualifierExpression(); doCheckCall(lambdaExpression, () -> ((PsiMethodCallExpression)asMethodReference).resolveMethod(), qualifierExpression, asMethodReference, InspectionGadgetsBundle.message("replace.method.ref.with.qualifier.problem.lambda")); } }