void (@NotNull Properties uiPreferences, @NotNull JavaCodeStyleSettings javaSettings) { String oderOfImportsValue = uiPreferences.getProperty(OPTION_IMPORT_ORDER); if (oderOfImportsValue != null) { PackageEntryTable importLayoutTable = new PackageEntryTable(); importLayoutTable.addEntry(PackageEntry.ALL_OTHER_STATIC_IMPORTS_ENTRY); String[] chunks = oderOfImportsValue.split(";"); for (String importString : chunks) { if (!importString.trim().isEmpty()) { boolean isStatic = importString.startsWith("#"); importString = StringUtil.trimStart(importString, "#"); importLayoutTable.addEntry(PackageEntry.BLANK_LINE_ENTRY); importLayoutTable.addEntry(new PackageEntry(isStatic, importString, true)); } } if (importLayoutTable.getEntryCount() > 0) { importLayoutTable.addEntry(PackageEntry.BLANK_LINE_ENTRY); importLayoutTable.addEntry(PackageEntry.ALL_OTHER_IMPORTS_ENTRY); javaSettings.getImportLayoutTable().copyFrom(importLayoutTable); } } }