code: private void addNewArtifacts(List<ArtifactoryRepo> enabledRepos) {
          long start = System.currentTimeMillis();
  
          int count = 0;
          for (ArtifactoryRepo repo : enabledRepos) {
              for (BinaryArtifact artifact : nullSafe(artifactoryClient.getArtifacts(repo.getInstanceUrl(), repo.getRepoName(), repo.getLastUpdated()))) {
                  if (artifact != null && isNewArtifact(repo, artifact)) {
                      artifact.setCollectorItemId(repo.getId());
                      binaryArtifactRepository.save(artifact);
                      count++;
                  }
              }
          }
  
          // Iterate through list of repos and update the lastUpdated timestamp
          for (ArtifactoryRepo repo : enabledRepos) {
              repo.setLastUpdated(start);
          }
          // We set the last update time so need to save it
          artifactoryRepoRepository.save(enabledRepos);
          log("New artifacts", start, count);
      }
docs: Add any new {@link BinaryArtifact}s
  
  @param enabledRepos list of enabled {@link ArtifactoryRepo}s