checkForReplacement

fun <T : Node> checkForReplacement(cls: KClass<out Pass<T>>, language: Language<*>?, config: TranslationConfiguration): KClass<out Pass<T>>

Checks, whether the specified pass has a replacement configured in config for the given language. Currently, we only allow replacement on translation unit level, as this is the only level which has a single language set.