Set<PostfixTemplate> (@NotNull PostfixTemplateProvider provider) { Set<PostfixTemplate> result = new HashSet<>(provider.getTemplates()); for (PostfixTemplate template : PostfixTemplateStorage.getInstance().getTemplates(provider)) { if (template instanceof PostfixChangedBuiltinTemplate) { result.remove(((PostfixChangedBuiltinTemplate)template).getBuiltinTemplate()); } result.add(template); } return result; }