Solving Mordell equations via Shimura-Taniyama conjecture