  We develop the method for constructing Lax representations of PDEs via the
twisted extensions of their algebras of contact symmetries by generalizing the
construction to the Lie--Rinehart algebras. We present examples of application
of the proposed technique.
