String (Object... infos) { final Integer branchCount = (Integer)infos[0]; final PsiSwitchBlock block = (PsiSwitchBlock)infos[1]; if (block instanceof PsiSwitchExpression) { return branchCount == 0 ? InspectionGadgetsBundle.message("switch.expression.with.single.default.message") : InspectionGadgetsBundle.message("switch.expression.with.too.few.branches.problem.descriptor", branchCount); } return branchCount == 0 ? InspectionGadgetsBundle.message("switch.statement.with.single.default.message") : InspectionGadgetsBundle.message("switch.statement.with.too.few.branches.problem.descriptor", branchCount); }