I have been using intelliJ IDEA for quite some time, upgrading as available. Somehow it started auto adding the fully-qualified class name inline in the code instead of adding the import at the top of the file like it did for years. I have not been able to change this behavior in settings which means I have to manually move the qualified names to the top as imports and delete them in the code. import cleanup does not move them either, not that it should. It's driving me insane but I cannot find a setting or anyone else having this problem so I thought I'd ask here.
Example: I type LocalDate somewhere in code and intelliJ expands it to:
java.time.LocalDate myDate = null;
instead of adding the import to the top:
import java.time.LocalDate;
If the fully qualified name is inserted in the code, instead of import statement, it is needed to tick the Use fully qualified class names option under Preferences | Editor | Code Style | | imports. See the difference: