void (CompileContext context, ModuleChunk chunk, ModuleLevelBuilder builder) { String infoMessage = JpsBuildBundle.message("builder.0.requested.rebuild.of.module.chunk.1", builder.getPresentableName(), chunk.getName()); LOG.info(infoMessage); BuildMessage.Kind kind = BuildMessage.Kind.JPS_INFO; final CompileScope scope = context.getScope(); for (ModuleBuildTarget target : chunk.getTargets()) { if (!scope.isWholeTargetAffected(target)) { infoMessage += ".\n"; infoMessage += JpsBuildBundle.message("build.message.consider.building.whole.project.or.rebuilding.the.module"); kind = BuildMessage.Kind.INFO; break; } } context.processMessage(new CompilerMessage("", kind, infoMessage)); }