I think it is a built in (but configurable) option on newer Sony models.
Edit: they call it Qnovo Adaptive Charging and they get another minus from me [0] for making it impossible to select text on tye page by long-pressing it.
[0]: they got a huge minus from me back when they added "sponsored links" to my flagship Z3 or what it was.
Is it this one? https://f-droid.org/packages/com.slash.batterychargelimit/
Thanks for making me aware that such a thing exists.
I so wish manufacturers would offer this option, for those primarily deskbound who do not relish ungluing their battery after a year