Show success message on module activation

Hello everyone!

I can show error if something goes wrong, with onActivate() method by using:

Registry::getUtilsView()->addErrorToDisplay();

But how can i show the green success message? I searched the utils class but i didn’t find any method.

This is my short code which i am trying:

public static function onActivate()
    {
        $sql = "ALTER TABLE oxuser ADD COLUMN user_nickname varchar(25) NULL";
        $db = DatabaseProvider::getDb();
        if ($db->execute($sql)) {
           
**// show success message here  same as addErrorToDisplay() ??**
            $dbMeta = oxNew(DbMetaDataHandler::class);
            if ($dbMeta->updateViews('oxuser')) {
              
**// show success message here  same as addErrorToDisplay() ??**
            } else {
                Registry::getUtilsView()->addErrorToDisplay("something went wrong!");
            }
        } else {
            Registry::getUtilsView()->addErrorToDisplay("something went wrong!");
        }
    }