void (@NotNull Element settings) { myLangToDisabledTemplates.clear(); XmlSerializer.deserializeInto(settings, this); if (!myLangToDisabledTemplates.isEmpty()) { MultiMap<String, Language> importedLanguages = getLanguagesToImport(); for (Map.Entry<String, Set<String>> entry : myLangToDisabledTemplates.entrySet()) { for (Language language : importedLanguages.get(entry.getKey())) { for (PostfixTemplateProvider provider : LanguagePostfixTemplate.LANG_EP.allForLanguage(language)) { for (PostfixTemplate template : provider.getTemplates()) { if (entry.getValue().contains(template.getKey())) { disableTemplate(template, provider); } } } } } for (String language : importedLanguages.keySet()) { myLangToDisabledTemplates.remove(language); } } }