Eclipse and Intellij use different default layouts of Java imports. If used on the same project, Eclipse’s “Organize Imports” will compete with Intellij’s “Optimize Imports“.
To avoid distracting back-and-forth code changes, Intellij can be configured to match the default Eclipse behavior:
Go to File – Settings – Editor – Code Style – Java – Imports tab
Prevent on-demand imports (i.e. wildcards) by settings high count limits:

Define the imports layout (i.e. grouping and order) like this:
