CustomLibraryDescription (@Nullable Project project) { if (JvmPlatformKt.isJvm(targetPlatform)) return new JavaRuntimeLibraryDescription(project); if (JsPlatformKt.isJs(targetPlatform)) return new JSLibraryStdDescription(project); throw new IllegalStateException("Only JS and JVM target are supported"); }