toIntelliJPlatformType

Maps the value to an IntelliJPlatformType.

This extension function transforms Any value that can be converted into IntelliJPlatformType. Also validates that the type-version combination is valid.

Receiver

Any value that can be converted to IntelliJPlatformType

Return

IntelliJPlatformType instance

Parameters

version

The version string to help determine the correct type

Throws

if the value cannot be converted to IntelliJPlatformType or if the combination is invalid