String (Object... infos) { final PsiBinaryExpression expression = (PsiBinaryExpression)infos[0]; final PsiExpression lhs = PsiUtil.skipParenthesizedExprDown(expression.getLOperand()); final String text; CommentTracker tracker = new CommentTracker(); if (lhs instanceof PsiMethodCallExpression) { final PsiMethodCallExpression callExpression = (PsiMethodCallExpression)lhs; text = createContainsExpressionText(callExpression, false, expression.getOperationTokenType(), tracker); } else { final PsiMethodCallExpression callExpression = (PsiMethodCallExpression)PsiUtil.skipParenthesizedExprDown(expression.getROperand()); assert callExpression != null; text = createContainsExpressionText(callExpression, true, expression.getOperationTokenType(), tracker); } return InspectionGadgetsBundle.message( "expression.can.be.replaced.problem.descriptor", text); }