ProblemDescriptor (@NotNull final PsiMethodCallExpression call) { PsiElement parent = PsiUtil.skipParenthesizedExprUp(call.getParent()); if (parent instanceof PsiExpressionList list && list.getExpressionCount() == 1 && parent.getParent() instanceof PsiMethodCallExpression parentCall && STRING_EQUALS.test(parentCall)) { PsiElement nameElement = Objects.requireNonNull(call.getMethodExpression().getReferenceNameElement()); final String message = InspectionGadgetsBundle.message("inspection.x.call.can.be.replaced.with.y", CONTENT_EQUALS); return myManager.createProblemDescriptor(nameElement, message, new UseContentEqualsFix(), ProblemHighlightType.GENERIC_ERROR_OR_WARNING, myIsOnTheFly); } return null; }