protected void genEquivalentMethod() {
private void genEquivalentMethod() {
    protected void genEquivalentMethod() {        String className = TypeGenerator.className(type);        println("  public boolean equivalent(shared.SharedObject peer) {");        println("    if (peer instanceof " + className + ") {");        println("      return super.equivalent(peer);");        println("    }");        println("    else {");        println("      return false;");        println("    }");        println("  }");        println();    }