code: public static List<ClasspathResource> findResourcesWithDuplicates(List<ClasspathResource> resourceFiles, boolean excludeSameSizeDups) {
          List<ClasspathResource> resourcesWithDuplicates = new ArrayList<>();
  
          // keep only entries with duplicates
          for (ClasspathResource resource : resourceFiles) {
              if (resource.hasDuplicates(excludeSameSizeDups)) {
                  resourcesWithDuplicates.add(resource);
              }
          }
          return resourcesWithDuplicates;
  
      }
docs: Inspects a given list of classpath resources, and returns only the resources that contain multiple versions.
  
  @param resourceFiles - the resource files to be inspected
  @param excludeSameSizeDups - true to consider only as duplicates files with multiple versions with different file
  sizes
  @return - the list of resources with duplicates