public static ScriptableObject GetLibraryScopeOrNull(Scriptable scope) { ScriptableObject libScope; libScope = (ScriptableObject)ScriptableObject.GetTopScopeValue(scope, LIBRARY_SCOPE_KEY); return libScope; }