ProblemDescriptor (PsiMethodCallExpression equalsToCallExpression, PsiElement anchor, RemoveRedundantChangeCaseFix.PlaceCaseEqualType type) { String nameMethod = equalsToCallExpression.getMethodExpression().getReferenceName(); if (nameMethod == null) { return null; } return myManager.createProblemDescriptor(anchor, (TextRange)null, InspectionGadgetsBundle.message("inspection.x.call.can.be.replaced.with.y", EQUALS_IGNORE_CASE), ProblemHighlightType.GENERIC_ERROR_OR_WARNING, myIsOnTheFly, new RemoveRedundantChangeCaseFix(nameMethod, type)); }