Exclude objects from occlusion

I use occlusion but in the scene I have buildings with windows.
The windows are considered walls and the objects behind these windows are therefore invisible.
How to exclude windows from occlusion?
Thanks in advance.