scalacPatches module: set intellijMainJars := Nil for
scalacPatches module: set intellijMainJars := Nil for

Otherwise Dependencies.excludeJarsFromPlatformDependencies will not make any affect.
This is because when library will be registered for scalacPatches module, it won't filter out those jars. It will create library with already existing name (INTELLIJ-SDK), and override the one which already exists

JetBrains/intellij-scala,JetBrains/intellij-scala