@Override
	public boolean matches(String text) {
		if (text == null) {
			return false;
		}

		Pattern pattern = getFilterPattern();
		if (pattern == null) {
			return false;
		}

		return matches(text, pattern);
	}
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