src/language-js/comments.js/addBlockStatementFirstComment
function addBlockStatementFirstComment(node, comment) {
  const body = (node.body || node.properties).filter(
    (n) => n.type !== "EmptyStatement"
  );
  if (body.length === 0) {
    addDanglingComment(node, comment);
  } else {
    addLeadingComment(body[0], comment);
  }
}