in core/src/main/scala/org/apache/pekko/persistence/cassandra/package.scala [128:141]
@InternalApi private[pekko] def indent(stmt: String, prefix: String): String =
stmt.split('\n').mkString("\n" + prefix)
/** INTERNAL API */
@InternalApi private[pekko] def getListFromConfig(config: Config, key: String): List[String] = {
config.getValue(key).valueType() match {
case ConfigValueType.LIST => config.getStringList(key).asScala.toList
// case ConfigValueType.OBJECT is needed to handle dot notation (x.0=y x.1=z) due to Typesafe Config implementation quirk.
// https://github.com/lightbend/config/blob/master/config/src/main/java/com/typesafe/config/impl/DefaultTransformer.java#L83
case ConfigValueType.OBJECT => config.getStringList(key).asScala.toList
case ConfigValueType.STRING => config.getString(key).split(",").toList
case _ => throw new IllegalArgumentException(s"$key should be a List, Object or String")
}
}