void (PsiSwitchBlock block) { final PsiCodeBlock body = block.getBody(); if (body == null) { return; } final int branchCount = Math.abs(SwitchUtils.calculateBranchCount(block)); if (branchCount == 0) { return; } final double density = calculateDensity(body, branchCount); final int intDensity = (int)(density * 100.0); if (intDensity > m_limit) { return; } registerError(block.getFirstChild(), Integer.valueOf(intDensity)); }