IDEA Error: org.jetbrains.jps.builders.java.dependencyView.TypeRepr$PrimitiveType cannot be cast t

Error Messages:
org.jetbrains.jps.builders.java.dependencyView.TypeRepr$PrimitiveType cannot be cast to org.jetbrains.jps.builders.java.dependencyView.TypeRepr$ClassType

Solution:

Read More: