Projection techniques in equilibrium statistical mechanics