How can the judiciary balance religious sensitivities in disputes over shared religious sites?

The inspection of the Bhojshala Temple-Kamal Maula Mosque site by MP High Court judges highlights the complexities of religious coexistence. I want to understand what principles or approaches can help courts handle such sensitive cases without deepening social divides.