String (Object... infos) { final PsiBinaryExpression expression = (PsiBinaryExpression)infos[0]; final PsiExpression lhs = expression.getLOperand(); final PsiJavaToken sign = expression.getOperationSign(); final boolean value; if (lhs instanceof PsiMethodCallExpression) { value = createContainsExpressionValue(sign, false); } else { value = createContainsExpressionValue(sign, true); } if (value) { return InspectionGadgetsBundle.message( "pointless.indexof.comparison.always.true.problem.descriptor"); } else { return InspectionGadgetsBundle.message( "pointless.indexof.comparison.always.false.problem.descriptor"); } }