void (ImportsLayoutSettings settings) { stopTableEditing(); settings.setLayoutStaticImportsSeparately(myImportLayoutPanel.areStaticImportsEnabled()); kotlinUI.apply(settings); PackageEntryTable list = myImportLayoutPanel.getImportLayoutList(); settings.getImportLayoutTable().copyFrom(getCopyWithoutEmptyPackages(list)); settings.getPackagesToUseImportOnDemand().copyFrom(getCopyWithoutEmptyPackages(myPackageList)); }