Brian Jay Jones in his biography of George Lucas, George Lucas: A Life (2016), tells that in May 1975, while writing an early six-page synopsis of Star Wars, George Lucas read The Teachings of Don Juan: A Yaqui Way of Knowledge, a work of anthropology and Sci-Fi by American author Carlos Castañeda.
Then, in August 1975, Lucas finished a third draft of Star Wars, the first to feature a character named General Ben Kenobi. About him, Lucas wrote..."Old man can do magic, read minds, talk to things like Don Juan".
In Castaneda's book, Don Juan is a Yaqui sorcerer and shaman.