private <T> List<T> castList(Object obj, Class<T> clazz) {
        List<T> result = new ArrayList<T>();
        if (obj instanceof List<?>) {
            for (Object o : (List<?>) obj) {
                result.add(clazz.cast(o));
            }
            return result;
        }
        return null;
    }
This file represents a simple sanity checks on the parsing of the .interp file
 available to the Java runtime for interpreting rather than compiling and executing parsers.
runtime-testsuite/test/org/antlr/v4/test/runtime/java/TestInterpreterDataReader.java