code: private List<Deployment> archiveDeployments(List<Deployment> deployments) {
          List<Deployment> archives = new ArrayList<Deployment>();
          for (Deployment deployment : deployments) {
              if (deployment.getDescription().isArchiveDeployment()) {
                  archives.add(deployment);
              }
          }
          return archives;
      }
docs: Filters the List of Deployments and returns the ones that are Archive deployments.
  
  @param deployments
  List to filter
  
  @return Filtered list