I think you are just describing having expectations? You have done x enough times in certain situations that you expect x to be the answer or to happen again when you are in similar situations.
It can be useful but it can also be unhelpful. If you are looking for x and it turns out the answer is y you might get knifed in the back, er, or miss the non obvious error in your code.