Honestly, when using inner classes outside of its parent, JUST makes sense to refer to the outer class instead of importing the inner class at the top level, otherwise, why is this class an inner class instead of the top level? From my point of view, if you consume the inner class outside your parent in the party (you say 100 times), do you not think that you should reconsider your design?
In any case, you can control Auto-Import in IntelliJ at Settings > Editor > Auto Import .
On the other hand, if you want to have import for your inner classes , go to Settings > Code Style > Java > Imports and check the Insert imports for inner classes check box.
source share