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

public void removeNotification ( @ NotNull Notification notification ) { int index = notifications . indexOf ( notification ) ; if ( index >= 0 ) { nGrid . removeRow ( index ) ; notifications . remove ( index ) ; } }
remove notification from the container .
