docs: private void loadListeners(ServiceLoader<LifecycleListener> loader) {
          Iterator<LifecycleListener> iterator = loader.iterator();
          while (hasNextSafely(iterator)) {
              try {
                  LifecycleListener listener = iterator.next();
                  listeners.add(listener);
                  LOGGER.info(String.format("Found %s: %s", LifecycleListener.class, listener.getClass()));
              } catch (ServiceConfigurationError e) {
                  LOGGER.error("iterator.next() failed", e);
              }
          }
      }