getLayerStatesArray(states) {
    states = states ? states : [];
    states.push(this.getLayerState());
    return states;
  }
@param {Array<import("./Layer.js").State>} [states] Optional list of layer states (to be modified in place).
@return {Array<import("./Layer.js").State>} List of layer states.
@override