public void removeNotification(@NotNull Notification notification){
  int index=notificationWidget.indexOf(notification);
  if (index >= 0) {
    panel.removeRow(index);
    notificationWidget.remove(index);
  }
}

public void removeNotification ( @ NotNull Notification notification ) { int index = notificationWidget . indexOf ( notification ) ; if ( index >= 0 ) { panel . removeRow ( index ) ; notificationWidget . remove ( index ) ; } }
disable notification in container .
