class ConditionalOnSelectiveNamespacesPresent implements ConfigurationCondition {

	private static final LogAccessor LOG = new LogAccessor(
			LogFactory.getLog(ConditionalOnSelectiveNamespacesPresent.class));

	@Override
	public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {<FILL_FUNCTION_BODY>}

	@Override
	public ConfigurationCondition.ConfigurationPhase getConfigurationPhase() {
		return ConfigurationPhase.REGISTER_BEAN;
	}

}


		Set<String> selectiveNamespaces = Binder.get(context.getEnvironment())
				.bind("spring.cloud.kubernetes.discovery.namespaces", Bindable.setOf(String.class)).orElse(Set.of());
		boolean selectiveNamespacesPresent = !selectiveNamespaces.isEmpty();
		if (selectiveNamespacesPresent) {
			LOG.debug(() -> "found selective namespaces : " + selectiveNamespaces.stream().sorted().toList());
		}
		else {
			LOG.debug(() -> "selective namespaces not present");
		}
		return selectiveNamespacesPresent;
	
<no_super_class>