void (@NotNull StringBuilder sb, @NotNull Change.Type type, @Nullable String before, @Nullable String after) { switch (type) { case MODIFICATION -> sb.append("M ").append(after); case NEW -> sb.append("A ").append(after); case DELETED -> sb.append("D ").append(before); case MOVED -> sb.append("R ").append(before).append(" -> ").append(after); } sb.append("\n"); }