this could be simplified to `return object.type === Syntax.VariableDeclarator && (jsx == null || jsx === 'React.DOM');`