docs: public static @CheckForNull
      Run<?, ?> getPreviousRun(@Nonnull Run<?, ?> run, TaskListener listener) {
          Run<?, ?> previousRun = run.getPreviousBuild();
          if (previousRun != null && previousRun.isBuilding()) {
              listener.getLogger().println(Messages.ExtendedEmailPublisher__is_still_in_progress_ignoring_for_purpo(previousRun.getDisplayName()));
              return null;
          } else {
              return previousRun;
          }
      }