Generalized analytic integrability of a class of polynomial differential systems in C2