terms = 20; y[_, _] = 0; Do[y[x_, t_] = (1/(-1 + y[x, t])) x (-1 - y[x, t]^2 - 2 y[x, t] (-1 + D[y[x, t], x]) + t x (-1 + y[x, t]) (2 (-1 + y[x, t])^2 + (x (-1 + y[x, t]) + y[x, t]) D[y[x, t], x])) + O[x]^n // Normal // Simplify, {n, terms+1}];
Total[CoefficientList[#, t]]& /@ CoefficientList[y[x, t], x] // Rest