ISOLATED SYSTEM. “This assumption is valid for weakly bound electrons that, to a good approximation, can be treated as free particles.”
https://opentextbc.ca/universityphysicsv3openstax/chapter/the-compton-effect/#:~:text=The%20Compton%20effect%20is%20the,wavelength%20of%20the%20incident%20radiation