static isCommonJS(nodes) {
    if (!nodes[0]) {
      return false;
    } else if (nodes[0].type === 'ExpressionStatement' &&
        nodes[0].expression.type === 'CallExpression' &&
        nodes[0].expression.callee.name === 'require') {
      return true;
    } else if (nodes[0].type === 'VariableDeclaration' && nodes[0].declarations) {
      for (let j = 0; j < nodes[0].declarations.length; j++) {
        let declaration = nodes[0].declarations[j];

        if (declaration.type === 'VariableDeclarator' &&
            declaration.init &&
            declaration.init.type === 'CallExpression' &&
            declaration.init.callee.name === 'require') {
          return true;
        }
      }
    }

    return false;
  }
Returns whether or not the nodes are part of a CommonJS require statement.

@param   {Node[]}  nodes
@returns {boolean}