Add codegen support for nested notifications