def METHOD_NAME(self, handler: callable or None) -> None:
    if callable(handler):
        self.controller.refreshControl = UIRefreshControl.alloc().init()
        self.controller.refreshControl.addTarget(
            self.controller,
            action=SEL("refresh"),
            forControlEvents=UIControlEventValueChanged,
        )
    else:
        if self.controller.refreshControl:
            self.controller.refreshControl.removeFromSuperview()
        self.controller.refreshControl = None