static AccessPredicate toServerAddress(final Predicate<? super SocketAddress> localAddressCheck) {
        requireNonNull(localAddressCheck, "localAddressCheck");
        return (a, c) -> localAddressCheck.test(c.getAttributes().get(Grpc.TRANSPORT_ATTR_LOCAL_ADDR));
    }
Checks that the client connected to the given server address.

@param localAddressCheck The check to apply to the server address.
@return A newly created AccessPredicate that only returns true, if the server address passes the given check.

@see Grpc#TRANSPORT_ATTR_LOCAL_ADDR
grpc-server-spring-boot-starter/src/main/java/net/devh/boot/grpc/server/security/check/AccessPredicate.java