scripts/tools/eslint-plugin-prettier-internal-rules/no-conflicting-comment-check-flags.js/flatFlags
const flatFlags = (node) => {
  const flags = [];
  const binaryExpressions = [node];
  while (binaryExpressions.length > 0) {
    const { left, right } = binaryExpressions.shift();
    for (const node of [left, right]) {
      if (node.type === "BinaryExpression" && node.operator === "|") {
        binaryExpressions.push(node);
        continue;
      }

      if (!isCommentCheckFlags(node)) {
        return [];
      }

      flags.push(node);
    }
  }

  return flags.map((node) => node.property.name);
};