code: public List<RunT> getLastBuildsOverThreshold(int numberOfBuilds, Result threshold) {
          
          List<RunT> result = new ArrayList<>(numberOfBuilds);
          
          RunT r = getLastBuild();
          while (r != null && result.size() < numberOfBuilds) {
              if (!r.isBuilding() && 
                   (r.getResult() != null && r.getResult().isBetterOrEqualTo(threshold))) {
                  result.add(r);
              }
              r = r.getPreviousBuild();
          }
          
          return result;
      }
docs: Returns the last {@code numberOfBuilds} builds with a build result ≥ {@code threshold}
  
  @return a list with the builds. May be smaller than 'numberOfBuilds' or even empty
  if not enough builds satisfying the threshold have been found. Never null.