code: def decorate_set_on_listener(prototype):
      
      # noinspection PyDictCreation,PyProtectedMember
      def add_annotation(method):
          method._event_info = {}
          method._event_info['name'] = method.__name__
          method._event_info['prototype'] = prototype
          return method
  
      return add_annotation
docs: Private decorator for use in the editor.
          Allows the Editor to create listener methods.
  
          Args:
              params (str): The list of parameters for the listener 
                  method (es. "(self, new_value)")