public static boolean isDisableInheritableThreadFactory(@Nullable ThreadFactory threadFactory) {
        return threadFactory instanceof DisableInheritableThreadFactory;
    }
check the {@link ThreadFactory} is {@link DisableInheritableThreadFactory} or not.

@see TtlForkJoinPoolHelper#getDisableInheritableForkJoinWorkerThreadFactory
@see #getDefaultDisableInheritableThreadFactory()
@see DisableInheritableThreadFactory
@since 2.10.0
ttl2-compatible/src/main/java/com/alibaba/ttl/threadpool/TtlExecutors.java