Compare and contrast order.
The paragraph is comparing the persons interest to where they would go.
The sentence that suggest that doctors, like lawyers are part of superficial middle-class world of nineteenth century Rusia is:
The doctor put on just the same air towards him as he himself put on towards an accused person.