logReplaced function
Implementation
void logReplaced(String targetDescription, String filePath, {int? matchCount}) {
final suffix = matchCount == null ? "" : " (matches: $matchCount)";
stdout.writeln(
"[REPLACED] $targetDescription in $filePath$suffix",
);
}