class SpringCloudFunctionHelpDocumentCustomizer implements HelpDocumentCustomizer {

	private static final Log logger = LogFactory.getLog(SpringCloudFunctionHelpDocumentCustomizer.class);

	private final Set<String> buildDependencies;

	private final MustacheTemplateRenderer templateRenderer;

	private final SpringCloudProjectVersionResolver projectVersionResolver;

	private final ProjectDescription description;

	SpringCloudFunctionHelpDocumentCustomizer(Build build, ProjectDescription description,
			MustacheTemplateRenderer templateRenderer, SpringCloudProjectVersionResolver projectVersionResolver) {
		this.buildDependencies = build.dependencies().ids().collect(Collectors.toSet());
		this.description = description;
		this.templateRenderer = templateRenderer;
		this.projectVersionResolver = projectVersionResolver;
	}

	@Override
	public void customize(HelpDocument helpDocument) {
		this.buildDependencies.stream()
			.filter((dependencyId) -> dependencyId.equals("cloud-function"))
			.findAny()
			.ifPresent((dependency) -> addBuildSetupInfo(helpDocument));
	}

	private void addBuildSetupInfo(HelpDocument helpDocument) {<FILL_FUNCTION_BODY>}

	private boolean isSnapshot(String springCloudFunctionVersion) {
		return springCloudFunctionVersion.toUpperCase().contains("SNAPSHOT");
	}

	private Set<CloudPlatform> cloudPlatformsFromDependencies() {
		return new HashSet<>(Arrays.stream(CloudPlatform.values())
			.collect(Collectors
				.partitioningBy((cloudPlatform) -> this.buildDependencies.contains(cloudPlatform.getDependencyId())))
			.get(true));
	}

	private MustacheSection getSection(String version, String buildSystemId, CloudPlatform cloudPlatform,
			String templateName) {
		return new MustacheSection(this.templateRenderer, templateName,
				getModel(cloudPlatform, buildSystemId, version));
	}

	private Map<String, Object> getModel(CloudPlatform cloudPlatform, String buildSystemId, String version) {
		Map<String, Object> model = new LinkedHashMap<>();
		model.put("platform", cloudPlatform.getName());
		model.put("buildTool", buildSystemId);
		model.put("version", version);
		return model;
	}

	private String getTemplateName(CloudPlatform cloudPlatform) {
		return "spring-cloud-function-build-setup-" + cloudPlatform.toString().toLowerCase();
	}

	/**
	 * Represents Cloud Platforms that provide build plugins that can be used for
	 * deploying Spring Cloud Function applications.
	 */
	enum CloudPlatform {

		AZURE("Microsoft Azure", "azure-support", Collections.singletonList(MavenBuildSystem.ID));

		private final String name;

		private final String dependencyId;

		private List<String> supportedBuildSystems = Arrays.asList(MavenBuildSystem.ID, GradleBuildSystem.ID);

		CloudPlatform(String name, String dependencyId, List<String> supportedBuildSystems) {
			this(name, dependencyId);
			this.supportedBuildSystems = supportedBuildSystems;
		}

		CloudPlatform(String name, String dependencyId) {
			this.name = name;
			this.dependencyId = dependencyId;
		}

		String getName() {
			return this.name;
		}

		String getDependencyId() {
			return this.dependencyId;
		}

		List<String> getSupportedBuildSystems() {
			return Collections.unmodifiableList(this.supportedBuildSystems);
		}

	}

}

		Version bootVersion = this.description.getPlatformVersion();
		String springCloudFunctionVersion = this.projectVersionResolver.resolveVersion(bootVersion,
				"org.springframework.cloud:spring-cloud-function-core");
		if (springCloudFunctionVersion == null) {
			logger.warn("Spring Cloud Function version could not be resolved for Spring Boot version: "
					+ bootVersion.toString());
			return;
		}
		if (isSnapshot(springCloudFunctionVersion)) {
			logger.debug("Spring Cloud Function version " + springCloudFunctionVersion
					+ " is a snapshot. No documents are present for this version to link to.");
			return;
		}
		String buildSystemId = this.description.getBuildSystem().id();
		Map<Boolean, List<CloudPlatform>> platformsByBuildSystemSupport = cloudPlatformsFromDependencies().stream()
			.collect(Collectors
				.partitioningBy((cloudPlatform) -> cloudPlatform.getSupportedBuildSystems().contains(buildSystemId)));
		platformsByBuildSystemSupport.get(true)
			.forEach((cloudPlatform) -> helpDocument.nextSteps()
				.addSection(getSection(springCloudFunctionVersion, buildSystemId, cloudPlatform,
						getTemplateName(cloudPlatform))));
		platformsByBuildSystemSupport.get(false)
			.forEach((cloudPlatform) -> helpDocument.nextSteps()
				.addSection(getSection(springCloudFunctionVersion, buildSystemId, cloudPlatform,
						"spring-cloud-function-build-setup-missing")));
	
<no_super_class>