class EnvVarValidator {

    Collection<KubernetesEnvBuildItem> getBuildItems() {
        if (conflicting.isEmpty() && errors.isEmpty()) {
            return items.values();
        }
        throw new IllegalArgumentException(getError());
    }

}