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