Drupal form API states can support multiple values.
E.g.
$form['field_something']['#states'] = [
'visible' => [
':input[name="field_else[0][target_id]"]' => [
['value' => 'one'],
['value' => 'two'],
['value' => 'three'],
['value' => 'four'],
],
],
];
This also applies to:
- Drupal 7
- Drupal 8
- Drupal 9
- Drupal 10