This seems like a specific application of the "inverted thinking/inversion" mentality. I once came across a post on this but can not find it now. I think it was about this article: https://fs.blog/inversion/
Edit - Or this one: https://jamesclear.com/inversion