code: function requiresBraceOfConsequent(node) {
              if (node.alternate && node.consequent.type === "BlockStatement") {
                  if (node.consequent.body.length >= 2) {
                      return true;
                  }
  
                  for (
                      let currentNode = node.consequent.body[0];
                      currentNode;
                      currentNode = astUtils.getTrailingStatement(currentNode)
                  ) {
                      if (currentNode.type === "IfStatement" && !currentNode.alternate) {
                          return true;
                      }
                  }
              }
  
              return false;
          }
docs: Checks a given IfStatement node requires braces of the consequent chunk.
  This returns `true` when below:
  
  1. The given node has the `alternate` node.
  2. There is a `IfStatement` which doesn't have `alternate` node in the
  trailing statement chain of the `consequent` node.
  
  @param {ASTNode} node - A IfStatement node to check.
  @returns {boolean} `true` if the node requires braces of the consequent chunk.