isApplicable

open override fun isApplicable(kotlinCompilation: KotlinCompilation<*>): Boolean(source)

KGP calls it after afterEvaluate, so apiWatchdog.enabled is final here. A raw -Xexplicit-api flag turns explicit API mode on for test compilations too, so the exclusion is here and not in the compiler plugin.