Moving isNodeOfTypeAndTagmethod to ParserUtils