void (Collection<? extends ModuleBuildTask> moduleBuildTasks, String warnMsg) { String moduleNames = StringUtil.join(moduleBuildTasks, task -> task.getModule().getName(), ", "); LOG.warn("Module" + (moduleBuildTasks.size() > 1 ? "s": "") + " : '" + moduleNames + "' " + warnMsg); }