void (@NotNull Class<? extends Notification> klass) { NotificationsManager notificationsManager = NotificationsManager.getNotificationsManager(); for (Notification notification : notificationsManager.getNotificationsOfType(klass, myProject)) { notification.expire(); } }