public static Stella_Object selectInstanceWithBacklinks(Cons instances, Surrogate relation) {
    relation = relation;
    { Stella_Object i = null;
      Cons iter000 = instances;

      for (;!(iter000 == Stella.NIL); iter000 = iter000.rest) {
        i = iter000.value;
        if ((i != null) &&
            (!false)) {
          { Stella_Object value = Logic.valueOf(i);

            if (Logic.instanceHasBacklinksP(value)) {
              return (value);
            }
          }
        }
      }
    }
    { Stella_Object i = null;
      Cons iter001 = instances;

      for (;!(iter001 == Stella.NIL); iter001 = iter001.rest) {
        i = iter001.value;
        if ((i != null) &&
            false) {
          { Stella_Object value = Logic.valueOf(i);

            if (Logic.instanceHasBacklinksP(value)) {
              return (value);
            }
          }
        }
      }
    }
    return (null);
  }