public static <T> T find(List<?> ops, Class<T> cl) {
		for (Object o : ops) {
			if ( cl.isInstance(o) ) return cl.cast(o);
//			if ( o.getClass() == cl ) return o;
		}
		return null;
	}
Find exact object type or subclass of cl in list
tool/src/org/antlr/v4/misc/Utils.java