void (@NotNull PsiMethodReferenceExpression expression) { final PsiExpression qualifierExpression = expression.getQualifierExpression(); final PsiElement referenceNameElement = expression.getReferenceNameElement(); doCheckCall(expression, () -> expression.resolve(), qualifierExpression, referenceNameElement, InspectionGadgetsBundle.message("replace.method.ref.with.qualifier.problem.method")); }