public static Symbol methodGensym(String prefix) {
    { MethodSlot method = ((MethodSlot)(Stella.$METHODBEINGWALKED$.get()));
      boolean localP = false;

      if (method != null) {
        if (method.methodFunctionP) {
          prefix = "F-" + method.slotName.symbolName + "-" + prefix;
        }
        else {
          prefix = "M-" + method.slotOwner.symbolName + "." + method.slotName.symbolName + "-" + prefix;
        }
        localP = true;
      }
      if (localP) {
        return (Stella.localGensym(prefix));
      }
      else {
        return (Stella.gensym(prefix));
      }
    }
  }