static SocketPredicate type(final Class<? extends SocketAddress> type) {
            requireNonNull(type, "type");
            return type::isInstance;
        }
Checks the type of the socket address.

@param type The expected class of the socket address.
@return The newly created socket predicate.
grpc-server-spring-boot-starter/src/main/java/net/devh/boot/grpc/server/security/check/AccessPredicate.java