void () { JavaCodeStyleSettings javaCodeStyleSettings = CodeStyle.getSettings(getProject()).getCustomSettings(JavaCodeStyleSettings.class); javaCodeStyleSettings.INSERT_INNER_CLASS_IMPORTS = true; doTest(createAction("pack1.Outer.Inner", "Inner", false, null, true, true, null)); }