In this paper we develop a general methodology for solving models with heterogeneous agents by projection methods. Our approach is solely based on the functional forms of agents' optimal policy rules and on a functional condition on the endogenous stationary distribution