void () { try { findMatchesCount("", "<H", HtmlFileType.INSTANCE); fail(); } catch (MalformedPatternException ignore) {} findMatchesCount("", "<H>", HtmlFileType.INSTANCE); // although invalid HTML, should not report an error findMatchesCount("", "<A href>", XmlFileType.INSTANCE); // although missing attribute value, should not report an error }