Notice how the profits only bump when the price is falling, because the retailers hold on to the higher price after wholesale has fallen.
The fossil fuel biz is an example of inelastic consumer pricing with widely varying cost of production and substantial scale up/down delays. When there is supply chain disruption, the price rises instantly to anticipate the richer consumers paying whatever it takes to squeeze the disadvantaged from getting any. This triggers scale-up of more expensive operations, and generates vast windfall profits for the low cost producers until the market reacts by increasing supply some three to 12 months later - but even then, at higher maximum production cost that is passed along down the chain.
Gasoline is inelastic, but nothing compared to food which is the other affect of the Russian invasion. Grain, cooking oil, fertilizer, and oil markets are so predictable they are most likely part of Putin's strategy. If the invasion ended quickly, he increased his market share and could squeeze for higher prices; if it dragged out, then prices would go to panic levels. Win/Win!