@Contract(value = "_ -> new", pure = true)
  static @NotNull SelectorComponent selector(final @NotNull String pattern) {
    return selector(pattern, null);
  }
Creates a selector component with a pattern.

@param pattern the selector pattern
@return a selector component
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/Component.java