In my career I’ve always had something to remember and make it as a habit. Like: adding typehints to the signatures, doc blocks, some stuff like that.
Couple of years ago I come up with idea of putting stickies on my screen: