void () { if (myEarlyNotifications != null) { List<Pair<Notification, @Nullable Project>> copy = myEarlyNotifications; myEarlyNotifications = null; if (LOG.isDebugEnabled()) LOG.debug("dispatching early notifications: " + copy); copy.forEach(early -> showNotificationWithSpan(early.first, early.second)); } }