Joe PASS used to say he could sing along his lines, because he had such a close relationship to his instrument...
Without being even half as good as him, I have practiced so much that I can pretty much play on the fretboard what I sing in my head, and actually, I sing words, so my solo is like a story... Well if that makes any sense.... Hope I helped