A geometric approach to the generalized Noether theorem. (12th February 2021)