void (TextBuffer buffer, String oldName, MType type, int indent) { if (oldName == null) return; buffer.appendIndent(indent); buffer.append("// $FF: renamed from: "); switch (type) { case CLASS -> buffer.append(ExprProcessor.buildJavaClassName(oldName)); case FIELD -> { String[] fParts = oldName.split(" "); FieldDescriptor fd = FieldDescriptor.parseDescriptor(fParts[2]); buffer.append(fParts[1]); buffer.append(' '); buffer.append(getTypePrintOut(fd.type)); } default -> { String[] mParts = oldName.split(" "); MethodDescriptor md = MethodDescriptor.parseDescriptor(mParts[2]); buffer.append(mParts[1]); buffer.append(" ("); boolean first = true; for (VarType paramType : md.params) { if (!first) { buffer.append(", "); } first = false; buffer.append(getTypePrintOut(paramType)); } buffer.append(") "); buffer.append(getTypePrintOut(md.ret)); } } buffer.appendLineSeparator(); }