@Contract("_, null -> _; _, !null -> !null")
  @SuppressWarnings("checkstyle:MethodName")
  default <T> @Nullable T getOrDefault(final @NotNull Pointer<T> pointer, final @Nullable T defaultValue) {
    return this.get(pointer).orElse(defaultValue);
  }
Gets the value of {@code pointer}.

<p>If a value for {@code pointer} is unable to be provided, {@code defaultValue} will be returned.</p>

@param pointer the pointer
@param defaultValue the default value
@param <T> the type
@return the value
@since 4.8.0
api/src/main/java/net/kyori/adventure/pointer/Pointers.java