class DefaultStarterBuildCustomizer implements BuildCustomizer<Build> {

	/**
	 * The id of the starter to use if no dependency is defined.
	 */
	static final String DEFAULT_STARTER = "root_starter";

	private final BuildMetadataResolver buildResolver;

	DefaultStarterBuildCustomizer(InitializrMetadata metadata) {
		this.buildResolver = new BuildMetadataResolver(metadata);
	}

	@Override
	public void customize(Build build) {<FILL_FUNCTION_BODY>}

	@Override
	public int getOrder() {
		return Ordered.LOWEST_PRECEDENCE;
	}

	private boolean isValidStarter(Dependency dependency) {
		return dependency.isStarter() && Dependency.SCOPE_COMPILE.equals(dependency.getScope());
	}

}

		boolean hasStarter = this.buildResolver.dependencies(build).anyMatch(this::isValidStarter);
		if (!hasStarter) {
			Dependency root = Dependency.createSpringBootStarter("");
			root.setId(DEFAULT_STARTER);
			build.dependencies().add(DEFAULT_STARTER, MetadataBuildItemMapper.toDependency(root));
		}
	
<no_super_class>