docs: public static <T> T removeLast(List<T> self) {
          if (self.isEmpty()) {
              throw new NoSuchElementException("Cannot removeLast() an empty List");
          }
          return self.remove(self.size() - 1);
      }