On constructing regulators that provide a control system being almost invariant