public static @NotNull ClickEvent runCommand(final @NotNull String command) {
    return new ClickEvent(Action.RUN_COMMAND, command);
  }
Creates a click event that runs a command.

@param command the command to run
@return a click event
@since 4.0.0
api/src/main/java/net/kyori/adventure/text/event/ClickEvent.java