@Override
	public int hashCode() {
		// not meant to put in hashing structures; the data for equals may change over time
		throw new UnsupportedOperationException();
	}
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