private static Pattern getCombinedPattern(List<RegexRule> rules) {
		// Cache results. Very likely to encounter rule-collection again which makes it wise to save
		// the result instead of re-computing every time.
		return patternCache.computeIfAbsent(rules, RegexSyntaxHighlighter::createCombinedPattern);
	}
@param rules
		Rules to match against.

@return Compiled regex pattern from the given rules.
recaf-ui/src/main/java/software/coley/recaf/ui/control/richtext/syntax/RegexSyntaxHighlighter.java