void (@NotNull PostfixTemplateProvider provider, @NotNull Collection<PostfixTemplate> templates) { Collection<PostfixTemplate> oldTemplates = myTemplates.get(provider.getId()); if (!templates.equals(oldTemplates)) { myTemplates.put(provider.getId(), templates); incModificationCount(); } }