Yes but some excuses are prettier than others. And a "protecting the environment" excuse is harder to refute than an "ugly paint job" excuse.China's coast guard has or will board (Taiwanese) ships and any excuse will do.
The key is to incrementally elevate the scope and effect of the stop-and-board actions. At some point the CCG will be stopping and boarding all commercial shipping into and out of Taiwanese ports. Papers will be examined; equipment will be inspected; container contents will be verified; etc etc. And there will always be some sort of infraction. With law enforcement there always is. And these actions will always be under the umbrella of safety-at-sea.
As the commercial shippers face longer inspection queues their annoyance will increase especially if they are carrying perishables or other-time sensitive products. Perhaps raising costs for Taiwanese-related operations. Perhaps declining shipments leaving lower-quality shippers to carry Taiwan's products at greater risk, including promised pickup and delivery times.
It's like a brake. China can slow or speed the traffic flow to signal approval or disapproval of Taiwanese actions at will. And the US and its partners have no legal or kinetic means to force a change.
And it's apparent to everyone who is watching this is what China is doing.