code: private List<org.jfrog.hudson.pipeline.types.File> getBuildFilesList(Stream<? extends BaseBuildFileBean> buildFilesStream) {
          return buildFilesStream
                  .filter(buildFile -> StringUtils.isNotBlank(buildFile.getLocalPath()))
                  .filter(buildFile -> StringUtils.isNotBlank(buildFile.getRemotePath()))
                  .map(org.jfrog.hudson.pipeline.types.File::new)
                  .distinct()
                  .collect(Collectors.toList());
      }
docs: Return a list of 'Files' of downloaded or uploaded files. Filters build files without local and remote paths.
  
  @param buildFilesStream - Stream of build Artifacts or Dependencies.
  @return - List of build files.