void () { myFixture.configureByText("Test.java", """ import java.util.Map; public abstract class SuperClass { enum X {A, B, C} void run() { Map<X, String> map = new EnumM<caret> } } """); myFixture.completeBasic(); myFixture.type('\n'); myFixture.checkResult(""" import java.util.EnumMap; import java.util.Map; public abstract class SuperClass { enum X {A, B, C} void run() { Map<X, String> map = new EnumMap<>() } } """); }