@Override
	public void visitClass(ClassNode cn) {
		for (CallGraph graph : CallGraphBuilder.GRAPHS.keySet()) {
			CallGraph other = CallGraphBuilder.GRAPHS.get(graph);
			
			if (graph.calls().size() > other.calls().size()) {// This means that "other" is the true dummy method.
				for (CallExpr call : other.calls()) {
					if (call instanceof CallStaticExpr) {
						call.replaceWith(new CallStaticExpr(call.params(), graph.method().editor().memberRef(), call.type()));
					} else if (call instanceof CallMethodExpr) {
						CallMethodExpr mthd = (CallMethodExpr) call;
						call.replaceWith(new CallMethodExpr(mthd.kind(), mthd.receiver(), call.params(), graph.method().editor().memberRef(), call.type()));
					}
					calls++;
				}
				other.method().editor().delete();
				deleted++;
			} else {
				for (CallExpr call : graph.calls()) {
					if (call instanceof CallStaticExpr) {
						call.replaceWith(new CallStaticExpr(call.params(), other.method().editor().memberRef(), call.type()));
					} else if (call instanceof CallMethodExpr) {
						CallMethodExpr mthd = (CallMethodExpr) call;
						call.replaceWith(new CallMethodExpr(mthd.kind(), mthd.receiver(), call.params(), other.method().editor().memberRef(), call.type()));
					}
					calls++;
				}
				graph.method().editor().delete();
			}
		}
	}