boolean (@NotNull CompileContext context) { for (Module module : context.getCompileScope().getAffectedModules()) { if (ExternalSystemApiUtil.isExternalSystemAwareModule(GradleConstants.SYSTEM_ID, module)) return true; } return false; }