fun getEnumValidationRules()

in src/main/kotlin/com/intellij/internal/statistic/eventLog/validator/storage/GlobalRulesHolder.kt [15:25]


  fun getEnumValidationRules(enumRef: String): EnumValidationRule? {
    val cachedValue = myGlobalEnumsCache[enumRef]
    if (cachedValue != null) return cachedValue
    val globalEnum = myGlobalEnums?.get(enumRef)
    if (globalEnum != null) {
      val rule = EnumValidationRule(globalEnum)
      myGlobalEnumsCache[enumRef] = rule
      return rule
    }
    return null
  }