Add fromEventHandlerFunction class method