code: static void attachRunListeners(Object runner, final RunNotifier notifier) throws Exception {
          if (NOTIFIERS.add(notifier)) {
              Description description = LifecycleHooks.invoke(runner, "getDescription");
              synchronized(runListenerLoader) {
                  for (RunListener listener : runListenerLoader) {
                      notifier.addListener(listener);
                      listener.testRunStarted(description);
                  }
              }
          }
      }
docs: Attach registered run listeners to the specified run notifier.
  <p>
  <b>NOTE</b>: If the specified run notifier has already been seen, do nothing.
  
  @param runner JUnit test runner
  @param notifier JUnit {@link RunNotifier} object
  @throws Exception if {@code run-started} notification