code: public static List<InputComponent> addInputComponents(UIBuilder builder, InputComponent... components) {
          List<InputComponent> inputComponents = new ArrayList<>();
          for (InputComponent component : components) {
              builder.add(component);
              inputComponents.add(component);
          }
          return inputComponents;
      }
docs: A helper function to add the components to the builder and return a list of all the components