I have recently migrated to Intellij 2022.1.2 and sometimes the IDE will just change the line spacing randomly between different code sections: annotation / function definition, imports / class definition etc.
This behavior seems to be very erratic, sometimes I just restart the IDE and all lines are ok again, sometimes the changes are persistent.
Here is an example:
This is a little bit irritating. Is there any way to disable it?



