class DependencyRangesInfoContributor implements InfoContributor {

	private final InitializrMetadataProvider metadataProvider;

	public DependencyRangesInfoContributor(InitializrMetadataProvider metadataProvider) {
		this.metadataProvider = metadataProvider;
	}

	@Override
	public void contribute(Info.Builder builder) {
		Map<String, Object> details = new LinkedHashMap<>();
		this.metadataProvider.get().getDependencies().getAll().forEach((dependency) -> {
			if (dependency.getBom() == null) {
				contribute(details, dependency);
			}
		});
		if (!details.isEmpty()) {
			builder.withDetail("dependency-ranges", details);
		}
	}

	private void contribute(Map<String, Object> details, Dependency dependency) {<FILL_FUNCTION_BODY>}

	private Version getHigher(Map<String, VersionRange> dep) {
		Version higher = null;
		for (VersionRange versionRange : dep.values()) {
			Version candidate = versionRange.getHigherVersion();
			if (higher == null) {
				higher = candidate;
			}
			else if (candidate.compareTo(higher) > 0) {
				higher = candidate;
			}
		}
		return higher;
	}

}

		if (!ObjectUtils.isEmpty(dependency.getMappings())) {
			Map<String, VersionRange> dep = new LinkedHashMap<>();
			dependency.getMappings().forEach((it) -> {
				if (it.getRange() != null && it.getVersion() != null) {
					dep.put(it.getVersion(), it.getRange());
				}
			});
			if (!dep.isEmpty()) {
				if (dependency.getRange() == null) {
					boolean openRange = dep.values().stream().anyMatch((v) -> v.getHigherVersion() == null);
					if (!openRange) {
						Version higher = getHigher(dep);
						dep.put("managed", new VersionRange(higher));
					}
				}
				Map<String, Object> depInfo = new LinkedHashMap<>();
				dep.forEach((k, r) -> depInfo.put(k, "Spring Boot " + r));
				details.put(dependency.getId(), depInfo);
			}
		}
		else if (dependency.getVersion() != null && dependency.getRange() != null) {
			Map<String, Object> dep = new LinkedHashMap<>();
			String requirement = "Spring Boot " + dependency.getRange();
			dep.put(dependency.getVersion(), requirement);
			details.put(dependency.getId(), dep);
		}
	
<no_super_class>