void () { JavaCodeStyleSettings settings = JavaCodeStyleSettings.getInstance(getProject()); settings.INSERT_INNER_CLASS_IMPORTS = true; myFixture.addClass("package java.awt.geom; public class Point2D { public static class Double {} }"); doActionTest(); }