insertConnectionStatements = function (button) {
  const workspace = button.getTargetWorkspace();
  Blockly.Xml.domToWorkspace(
    Blockly.utils.xml.textToDom(
      '<xml xmlns="https://developers.google.com/blockly/xml">\n' +
        '  <block type="test_connections_statement_blue">\n' +
        '    <statement name="NAME">\n' +
        '      <block type="test_connections_statement_yellow">\n' +
        '        <statement name="NAME">\n' +
        '          <block type="test_connections_statement_yellow">\n' +
        '            <statement name="NAME">\n' +
        '              <block type="test_connections_statement_red"/>\n' +
        '            </statement>\n' +
        '          </block>\n' +
        '        </statement>\n' +
        '      </block>\n' +
        '    </statement>\n' +
        '  </block>\n' +
        '</xml>',
    ),
    workspace,
  );
}
Handles "insert" button in the connection statement test category. This will
insert a group of test blocks connected as statements.
@param {!Blockly.FlyoutButton} button The flyout button.