void () { JavaCodeStyleSettings settings = JavaCodeStyleSettings.getInstance(getProject()); settings.PACKAGES_TO_USE_IMPORT_ON_DEMAND.addEntry(new PackageEntry(true, "java.lang.Math", true)); doTest("Add static import for 'java.lang.Math.abs'"); }