Well, when you consider that the original trilogy followed the hero's quest archetype that's found all throughout the world's mythologies, it isn't too much of a stretch to think the devs picked out some ideas from a specific myth to incorporate into their story.
Just my 2 cents.