private static void AssertCode(this ScriptContext context) { if (!context.ScriptLanguages.Contains(ScriptCode.Language)) { throw new NotSupportedException($"ScriptCode.Language is not registered in {context.GetType().Name}.{nameof(context.ScriptLanguages)}"); } }