simple usage examples:
display simple error message 'Error'
Message::error()->display();
get simple success message 'Success'
$message = Message::success();
get special notice
$message = Message::notice(__('This is a localized notice'));
more advanced usage example:
create another message, a hint, with a localized string which expects
$hint = Message::notice('Read the %smanual%s');
replace placeholders with the following params
$hint->addParam('[doc@cfg_Example]');
$hint->addParam('[/doc]');
add this hint as a tooltip
$hint = showHint($hint);
add the retrieved tooltip reference to the original message
$message->addMessage($hint);