public static <T> T buildGenerator(Class<? extends T> generatorClass, String fileName) throws Exception {
        return generatorClass.getDeclaredConstructor(String.class).newInstance(fileName);
    }
Build a generator instance of the given class with the given file name.
jctools-build/src/main/java/org/jctools/queues/util/GeneratorUtils.java