Generalized second order differential operators and their lateral conditions