Shadow buildings detection

Hello, I need some help for a change detection project in an urban area! Do you know a tool or plug-in for detecting the shadows of buildings. I tried to make an unsupervised classification on a S2 image and the shadows are assigned to water. If you know any solution for this, please let me know.