The gauge equivalence between the inhomogeneous versions of the nonlinear Schroedinger and the Heisenberg ferromagnet equations is studied. An unexplicit criterion for integrability is proposed. It is shown that in the nonintegrable cases the M-operators in the Lax representations possess pole singularities lying on the spectrum of the L-operators. (author). 14 refs.