void () { final Configuration[] templates = new XmlStructuralSearchProfile().getPredefinedTemplates(); final Map<String, Configuration> configurationMap = Stream.of(templates).collect(Collectors.toMap(Configuration::getName, x -> x)); doTest(configurationMap.remove(SSRBundle.message("predefined.template.li.not.contained.in.ul.or.ol")), """ <html> <ul><li>one</li></ul><li>two</li><li>three</li> </html>""", HtmlFileType.INSTANCE, "<li>two</li>", "<li>three</li>"); doTest(configurationMap.remove(SSRBundle.message("predefined.template.xml.tag.without.specific.attribute")), """ <one attributeName="1"> <two attributeName="value"></two> <three attributeName="value"/> <four/> <five></five> </one> """, XmlFileType.INSTANCE, "<four/>", "<five></five>"); }