public boolean detachNext(Linkable paramLinkable) {
    boolean b = false;

    if ((paramLinkable instanceof Instruction))
    {
      Instruction localInstruction = (Instruction)paramLinkable;
      if ((localInstruction.getPreviousInstruction() == null) && (getNextInstruction() == localInstruction))
      {
        localInstruction.setPreviousInstruction(null);
        setNextInstruction(null);

        b = true;
      }
      else {
        System.out.println("RepeatEnd: Asked to detachNext() from something we are not attached to.");
      }
    } else {
      System.out.println("RepeatEnd: Asked to detachNext() from something that's not an Instruction.");
    }
    return b;
  }