private Pattern getFilterPattern() {
		if (filterPattern == null) {
			filterPattern = createPattern();
		}
		return filterPattern;
	}
Subclasses implement this method for their usage of the given pattern (find vs. matches)

@param text the text to check against the pattern
@param pattern the pattern used to match the text
@return true if there is a match
Ghidra/Framework/Docking/src/main/java/docking/widgets/filter/AbstractPatternTextFilter.java