public default boolean isSubFilterOf(NumberRangeProducer a, NumberRangeProducer b) {

		Class<? extends NumberRangeProducer> clazzA = a.getClass();
		Class<? extends NumberRangeProducer> clazzB = b.getClass();
		if (!(clazzA.equals(clazzB))) {
			return false;
		}

		//
		// For a this range to be a sub-filter, this lower bound must be greater than the other
		// filter and this upper bound must be less than the other filter.  In this way, this
		// range is inside of the other range.
		//

		Number lowerA = a.getLowerNumber();
		Number lowerB = b.getLowerNumber();
		if (!isGreaterThanOrEqual(lowerA, lowerB)) {
			return false;
		}

		Number upperA = a.getUpperNumber();
		Number upperB = b.getUpperNumber();
		if (!isLessThanOrEqual(upperA, upperB)) {
			return false;
		}

		return true;
	}
Returns true if filter 'a' is a more specific version of filter 'b'

@param a the potential sub-filter
@param b the potential parent filter
@return true if filter 'a' is a more specific version of filter 'b'
Ghidra/Features/VersionTracking/src/main/java/ghidra/feature/vt/gui/provider/matchtable/NumberRangeSubFilterChecker.java