private static bool IsVisible(Context cx, object obj) { ClassShutter shutter = cx.GetClassShutter(); return shutter == null || shutter.VisibleToScripts(obj.GetType().FullName); }