@Nullable
    private static <T> MethodHandle getStringConstructorMethodHandle(final Class<T> clazz) {
        try {
            final MethodType methodType = MethodType.methodType(void.class, String.class);
            return MethodHandles.publicLookup().findConstructor(clazz, methodType);
        } catch (Throwable t) {
            // No valid constructor found
            return null;
        }
    }
Try to get a constructor {@link MethodHandle} with a single {@link String} argument in {@code clazz}.
@param <T> the expected result
@param clazz the class being introspected
@return a function that takes a {@link String} and produces a {@link T}
core/src/main/java/com/linecorp/armeria/internal/server/annotation/AnnotatedServiceTypeUtil.java