docs: public Component getComponentOfType(String type) {
          if (type == null || type.trim().length() == 0) {
              throw new IllegalArgumentException("A component type must be provided.");
          }
  
          Optional<Component> component = components.stream().filter(c -> type.equals(c.getType().getType())).findFirst();
          return component.orElse(null);
      }