Currently the SourceFile class uses qdox to parse content and obtain the class name. This doesn't work with records unfortunately. We might be able to trick qdox by making a record look like a regular class.