Is this still valid in QHv2: val Set<String> cloudyIds = newImmutableSet()

I migrated from v1 to v2 and have one of the design patters with Yahoo weather…
It defines some IDs like so:

 val Set&lt;String&gt; cloudyIds = newImmutableSet()

This creates a log entry:

2018-12-28 11:13:41.035 [INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'weather.rules', using it anyway:
The field Tmp_weatherRules.yahooCloudyIds refers to the missing type Object

which later results in:

2018-12-28 11:15:39.573 [ERROR] [ntime.internal.engine.RuleEngineImpl] - Rule 'Update Cloudy Switch': 'contains' is not a member of 'Object'; line 98, column 20, length 52

that line in the rules is:

    val isCloudy = yahooCloudyIds.contains(Condition_Id.state.toString)

Does anyone know how this needs to be rewritten to work in OH v2?