Bryan Singer , the director of the first two X-Men films , left the project in July 2004 in favor of developing Superman Returns .
He took over when Bryan Singer decided to direct Superman Returns .