static getSpanValue(pan) {
    return pan instanceof Span ? pan.getValue() : pan;
  }
Returns the value from a Span, if the param is not a Span it will return the given parameter.
@param {*|Span} pan - The value or Span to get the value from.
@returns {*} The value of Span OR the parameter if it is not a Span.