intellij ktlint plugin now can read/write to a properties file for the ktlint tool version:
ktlint-plugin/src/main/kotlin/com/nbadal/ktlint/KtlintPluginsPropertiesReader.kt
we should read that file and use it to set the ktlint version on the extension (as a convention)