private protected void WriteContent(IndentedStringBuilder builder)
        {
            foreach (var layout in _layout)
            {
                if (layout is string str)
                {
                    builder.AppendLine(str);
                }
                if (layout is BlockInfo blockInfo)
                {
                    var nestedBlock = new CodeBlockBuilder();
                    blockInfo.BlockAction(nestedBlock);

                    builder.AppendLine(blockInfo.Name);
                    builder.AppendLine("{");
                    nestedBlock.WriteContent(builder.NextIndentation());
                    builder.AppendLine("}");
                }
            }
        }