Generalized theories of gravity and conformal continuations