Chevron,
Cut your losses. Shut down the refinery and convert it to a solar or wind farm.
Refine fuels in places that will allow you to refine there.
The economic collapse of California is Sacramento's problem, not Chevron shareholders' problem.
The $h!theads in Sacramento believe Big Government is a magic wizard that can instantiate anything - housing, gasoline, electricity - on demand.
Kalifornia has eschewed free market Capitalism. Let 'em wallow in, yet, another cesspool of failed Socialist nonsense. It's up to the People of Kalifornia to vote with ballots or vote with their feet.
You can't fix stupid.