Why is Pelosi planning on visiting Taiwan?

Apparently, as part of its protestations, China fired some of its missiles in Japanese waters:

I could see Japan taking this as an excuse to establish some tariffs or otherwise act to push back on Chinese overbearingness in the region.