@SuppressWarnings("unchecked")
        @Override
        public void report(Diagnostic<? extends JavaFileObject> diagnostic) {
            diagnostics.add((Diagnostic<StringWrappingJavaFile>) diagnostic);
        }
A simplified wrapper around the rage inducing Java compiler API.
jctools-channels/src/main/java/org/jctools/util/SimpleCompiler.java