@Override
	public String toString() {
		//@formatter:off
		return "{\n" + 
			"\tfilter: " + filterText + ",\n" +
			"\tpattern: " + getFilterPattern() + ",\n" +
		"}";
		//@formatter:on
	}
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