code: public @NonNull SelectorComponent pattern(final @NonNull String pattern) {
      return new SelectorComponent(this.children, this.color, this.obfuscated, this.bold, this.strikethrough, this.underlined, this.italic, this.clickEvent, this.hoverEvent, this.insertion, requireNonNull(pattern, "pattern"));
    }
docs: Sets the selector pattern.
  
  @param pattern the selector pattern
  @return a copy of this component