The First Integral Method for the Generalized Drinfel’d–Sokolov–Wilson system and Bretherton equation