There are also situations where you know what to do just because you feel that way, without being able to articulate why.
These are dangerous! I try to really ask myself why I'm doing the thing, and if I can't come up with any reasonable answer, I consider no longer doing that thing or changing the habit somehow.