Notification (@NotNull Notification expectedNotification) { return ContainerUtil.find(myNotifications, notification -> expectedNotification.getType().equals(notification.getType()) && expectedNotification.getTitle().equals(notification.getTitle()) && expectedNotification.getContent().equals(notification.getContent()) ); }