private static Set<String> toServiceName(Collection<?> entries) {
        return entries.stream()
                      .flatMap(entry -> {
                          @SuppressWarnings("unchecked")
                          final Set<Class<?>> ifaces = (Set<Class<?>>) invokeMethod(interfacesMethod, entry);
                          assert ifaces != null;
                          return ifaces.stream();
                      })
                      .map(iface -> iface.getEnclosingClass().getName())
                      .collect(toImmutableSet());
    }
Retrieves thrift service names of {@code service} using reflection.
spring/boot3-autoconfigure/src/main/java/com/linecorp/armeria/internal/spring/ThriftServiceUtils.java