The plugin may look into the usage of generated BuildConfig class and may suggest to disable it. Just like Android resources, this also needs to look into ancestors.
Thinking out loud: it also needs to first check if it is disabled globally via gradle.properties