docs: public E getOrCreateById(String id, Class<E> type) throws IllegalAccessException, InstantiationException {
          E element = this.getById(id);
          if (element == null) {
              element = type.newInstance();
              element.setId(id);
              this.add(element);
          }
          return element;
      }