There is an Optimize imports on fly option (Editor-> General-> AutoImport) that removes unused imports. But when a test class is created, Intellij's idea adds import static org.junit.Assert.*; to him. But when the file is saved (immediately after adding), it removes this import. Is there a way to set up the Itellij idea to prevent this, but keep Optimize imports on fly enabled?
java import intellij-idea
Cherry
source share