Foliations and the Green-Griffiths-Lang conjecture