public static int calculateBranchCount(@NotNull PsiSwitchStatement statement) {
    // preserved for plugin compatibility
    return calculateBranchCount((PsiSwitchBlock)statement);
  }
public static int calculateBranchCount(@NotNull PsiSwitchStatement statement)