override fun process()

in server/src/main/kotlin/com/jetbrains/teamcity/plugins/unrealengine/server/runner/UnrealEngineRunnerPropertiesValidator.kt [15:33]


    override fun process(properties: MutableMap<String, String>?): MutableCollection<InvalidProperty> {
        properties ?: return mutableListOf()

        val result =
            either {
                zipOrAccumulate<PropertyValidationError, Any, Any, Unit>(
                    { parseDetectionMode(properties) },
                    { commandCreator.create(properties) },
                ) { _, _ -> }
            }

        return when (result) {
            is Either.Left ->
                result.value
                    .map { InvalidProperty(it.propertyName, it.message) }
                    .toMutableList()
            is Either.Right -> mutableListOf()
        }
    }