Answer:
Many critics suggested that the interior monologue technique (having access to a character's thoughts, connections which are not logical but rather emotional, etc) is derived from Freud's theories, although James Joyce constantly denied it, paying tribute in turn to other writers, notably to Edouard Dujardin.
He is known to have said with disdain: "Psychologist! What can a man know but what passes inside his own head?" (in Richard Ellmann's James Joyce)