When you've been working for a while - not necessarily even for the same company- you gather an internal library of knowledge that you can pattern match against for solutions. You may not have seen the exact same thing, but you may have seen something like it. There are hardly ever an entirely novel class of bugs anymore