boolean (CompileContext context) { for (JavaModuleBuildTargetType type : JavaModuleBuildTargetType.ALL_TYPES) { for (ModuleBuildTarget target : context.getProjectDescriptor().getBuildTargetIndex().getAllTargets(type)) { if (!context.getScope().isWholeTargetAffected(target)) { return false; } } } return true; }