public static void expireNotifications(@NotNull Project project) {
    for (Notification notification : getNotifications(project)) {
      notification.expire();
    }
  }
public static void expireNotifications(@NotNull Project project)