package org.jetbrains.dokka.validity interface PreGenerationChecker : () -> PreGenerationCheckerOutput { override fun invoke(): PreGenerationCheckerOutput } data class PreGenerationCheckerOutput(val result: Boolean, val messages: List) { operator fun plus(pair: Pair>) = Pair(result && pair.first, messages + pair.second) }