I'm assuming you mean the containerRayCast function?
In which case it will only search for StaticShapes if you tell it to.
If you need it search for StaticShapes, yet you want to ignore certain ones, just have it search for StaticShapes and if its one you want to ignore, fire another raycast from the StaticShape