void (PsiSwitchBlock expression) { final int branchCount = SwitchUtils.calculateBranchCount(expression); final int branchCountExcludingDefault = (branchCount < 0) ? -branchCount - 1 : branchCount; if (branchCountExcludingDefault <= m_limit) { return; } registerError(expression.getFirstChild(), Integer.valueOf(branchCountExcludingDefault)); }