Sorry, I believe that from this comment of @jeffmo he actually meant `return object.type === Syntax.XJSElement && (!jsx || jsx === 'React.DOM');`