code: public void remove(int amount) {
          int size = stack.size();
          for (int i=size-1; i>size-1-amount; i--) {
              popWithMessage(i);
          }
      }
docs: Remove amount elements from the operand stack, without using pop.
  For example after a method invocation