void () { CodeInsightSettings.getInstance().setSelectAutopopupSuggestionsByChars(true); myFixture.configureByText("a.java", "\nclass A {\n {\n String s;\n <caret>s.toString();\n }\n}"); myFixture.doHighlighting(); myFixture.launchAction(myFixture.findSingleIntention("Initialize variable")); myFixture.type("\""); myFixture.checkResult(""" class A { { String s = "null"; s.toString(); } }"""); assert !DefaultGroovyMethods.asBoolean(myFixture.getLookup()); }