code: protected boolean hasFailuresLevel(Collection<Failure> failures, int severity)
     {
        if (failures != null)
        {
           for (Failure failure : failures)
           {
              if (failure.getSeverity() == severity)
              {
                 return true;
              }
           }
        }
        return false;
     }
docs: Check for failures at a certain level
  @param failures failures failures The failures
  @param severity severity severity The level
  @return True if a failure is found with the specified severity; otherwise false