docs: public static AbstractBuild<?, ?> getRootBuild(AbstractBuild<?, ?> currentBuild) {
          AbstractBuild<?, ?> rootBuild = null;
          AbstractBuild<?, ?> parentBuild = getUpstreamBuild(currentBuild);
          while (parentBuild != null) {
              if (isPassIdentifiedDownstream(parentBuild)) {
                  rootBuild = parentBuild;
              }
              parentBuild = getUpstreamBuild(parentBuild);
          }
          if (rootBuild == null && isPassIdentifiedDownstream(currentBuild)) {
              return currentBuild;
          }
          return rootBuild;
      }