Description
When the "On Save" action "Organize Imports" is enabled, references to records from other files are removed when saving the file.
Simplified example:
File org/example/MainApp.java:
package org.example; import org.example.model.Foobar; public class MainApp { private Foobar f; }
File org/example/model/Foobar.java:
package org.example.model; public record Foobar(String name) { }
After saving MainApp.java, the import line is removed and the file cannot be compiled.