private static string GetCase(CodeBlock bodyBlock, params string[] labels) { if (!bodyBlock.HasReturn()) { bodyBlock = bodyBlock.Append("break;"); } var @case = bodyBlock.Indented().Insert(labels).Indented(); return(@case.WithoutCurlyBraces()); }