private AccessPredicateConfigAttribute find(final Collection<ConfigAttribute> attributes) {
        for (final ConfigAttribute attribute : attributes) {
            if (attribute instanceof AccessPredicateConfigAttribute) {
                return (AccessPredicateConfigAttribute) attribute;
            }
        }
        return null;
    }
Finds the first AccessPredicateConfigAttribute in the given collection.

@param attributes The attributes to search in.
@return The first found AccessPredicateConfigAttribute or null, if no such elements were found.
grpc-server-spring-boot-starter/src/main/java/net/devh/boot/grpc/server/security/check/AccessPredicateVoter.java