String (Object... infos) { final String replacement = (String)infos[1]; final PsiExpression expression = (PsiExpression)infos[0]; if (replacement.isEmpty() && expression instanceof PsiAssignmentExpression) { return InspectionGadgetsBundle.message("boolean.expression.does.not.modify.problem.descriptor", expression.getText()); } return InspectionGadgetsBundle.message("boolean.expression.can.be.simplified.problem.descriptor", replacement); }