code: public E removeById(String id) {
          // traverses the list twice, but reuse code
          E element = this.getById(id);
          if (element != null) {
              this.remove(element); // this should always return true since we already found the element
          }
          return element;
      }
docs: Removes the first element in this list with a matching identifier
  
  @param id the identifier to search for
  @return the removed element, or null of no element was removed