public void addNotification(@NotNull Notification notification){
  NotificationMessage message=new NotificationMessage(resources,notification,this);
  notificationMessage.put(notification,message);
  messages.add(message);
  showMessage();
}

public void addNotification ( @ NotNull Notification notification ) { NotificationMessage message = new NotificationMessage ( resources , notification , this ) ; notificationMessage . put ( notification , message ) ; messages . add ( message ) ; showMessage ( ) ; }
add notification to message stack .
