Function Style.getOrCreateState

find exact existing state style or create new if no matched styles found

Style getOrCreateState(
  uint stateMask = 0u,
  uint stateValue = 0u
);