code: public static List<String> getCompositeTypeList(Environment environment) {
  		return Binder.get(environment)
  				.bind("spring.cloud.config.server", CompositeConfig.class).get()
  				.getComposite().stream().map(map -> (String) map.get("type"))
  				.collect(Collectors.toList());
  	}
docs: Returns list of values of the `type` field from the
  `spring.cloud.config.server.composite` collection.
  @param environment Spring Environment
  @return list of matching types