@SuppressWarnings("unchecked") // if the type matches, it is safe to cast
	private static <T> List<ColumnConstraint<T>> getMatchingConstraints(
			List<ColumnConstraint<?>> constraints, Class<T> destinationType) {

		List<ColumnConstraint<T>> list = new ArrayList<>();
		for (ColumnConstraint<?> columnConstraint : constraints) {
			if (columnConstraint.getColumnType().equals(destinationType)) {
				list.add((ColumnConstraint<T>) columnConstraint);
			}
		}
		return list;
	}
Returns a list of all the {@link ColumnConstraint} that are capable of filtering the
given column type.

@param columnType the class of the data that is return by the table model for specific column.
@return  a list of all the {@link ColumnConstraint} that are capable of filtering the
given column type.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/DiscoverableTableUtils.java