void () { configureJava("import org.intellij.lang.annotations.Language;" + "class Main { " + " static {" + " injected(\"class C { static { new HashM<caret> }}\");" + " } " + " static void injected(@Language(\"JAVA\") String value){}" + "}"); complete("HashMap"); checkResult("import org.intellij.lang.annotations.Language;" + "class Main { " + " static {" + " injected(\"import java.util.HashMap;class C { static { new HashMap<<caret>>() }}\");" + " } " + " static void injected(@Language(\"JAVA\") String value){}" + "}"); tabOut(); checkResult("import org.intellij.lang.annotations.Language;" + "class Main { " + " static {" + " injected(\"import java.util.HashMap;class C { static { new HashMap<>(<caret>) }}\");" + " } " + " static void injected(@Language(\"JAVA\") String value){}" + "}" ); tabOut(); checkResult("import org.intellij.lang.annotations.Language;" + "class Main { " + " static {" + " injected(\"import java.util.HashMap;class C { static { new HashMap<>()<caret> }}\");" + " } " + " static void injected(@Language(\"JAVA\") String value){}" + "}" ); }