public static MethodSlot attachMethodSlotToOwner(MethodSlot newmethod) {
    if (newmethod.methodFunctionP) {
      return (MethodSlot.attachFunction(newmethod));
    }
    if (newmethod.slotOwner.surrogateValue == null) {
      return (newmethod);
    }
    if (!MethodSlot.undefineConflictingDefinitionsP(newmethod)) {
      return (null);
    }
    return (((MethodSlot)(Slot.attachSlotToOwner(newmethod))));
  }