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

@see TtlExecutors#getDisableInheritableForkJoinWorkerThreadFactory
@see #getDefaultDisableInheritableThreadFactory()
ttl-core/src/main/java/com/alibaba/ttl3/executor/TtlExecutors.java