protected ImportSorter getImportSorter() {
if (settings.isImportOrderFromFile()) {
if (importSorter == null || importOrderProviderFromFile.wasChanged(modifiedMonitor)) {
modifiedMonitor = importOrderProviderFromFile.getModifiedMonitor();
importSorter = new ImportSorter(importOrderProviderFromFile.get());
}
} else if (importSorter == null) {
importSorter = new ImportSorter(settings.getImportOrderAsList());
}
return importSorter;
}