On the cusp constraints in extended Hartree—Fock methods