Packages changed to directories after opening IDEA again, can't change back


Last night, everything was working perfectly fine and packages were being compacted in the file navigator on the left but this morning, it seems like the Compact Middle Packages option is off because they're showing up as directories instead and they're not compacted. However, the option is appearing as on and turning it off and on, restarting IDEA, and updating IDEA and plugins didn't work. Any suggestions? This is very annoying and I feel like I can't use it with it like this. :(



Make sure you have Kotlin plugin enabled and Maven pom.xml configured according to the refresh project in Maven tool window. If it does not help, try to open project by re-importing it from pom.xml: