private static List<Endpoint> endpoints(Application application, Predicate<InstanceInfo> filter,
                                            boolean secureVip) {
        final Set<InstanceInfo> instances = application.instances();
        return instances.stream()
                        .filter(filter)
                        .filter(instanceInfo -> instanceInfo.getStatus() == InstanceStatus.UP)
                        .map(instanceInfo -> endpoint(instanceInfo, secureVip))
                        .collect(toImmutableList());
    }
Returns a new {@link EurekaEndpointGroupBuilder} created with the specified {@link HttpPreprocessor}
and path.
eureka/src/main/java/com/linecorp/armeria/client/eureka/EurekaEndpointGroup.java