void () { GitPushResultNotification[] existingNotifications = NotificationsManager.getNotificationsManager().getNotificationsOfType(GitPushResultNotification.class, myProject); for (GitPushResultNotification notification : existingNotifications) { if (notification.getType() != NotificationType.INFORMATION) { notification.expire(); } } }