private JavaFileObject createFileObject(ResourceFile root, ResourceFile resourceFile,
			Kind kind) {
		try {
			return new ResourceFileJavaFileObject(root, resourceFile, kind);
		}
		catch (Exception e) {
			// resourceFile should have valid URL;
			throw new AssertException("Unexpected url exception on resource file" + resourceFile);
		}
	}
Create a {@link JavaFileManager} for use by the {@link JavaCompiler}.

@param sourceDirs the directories containing source
@param filesToAvoid known "bad" files to hide from the compiler
Ghidra/Features/Base/src/main/java/ghidra/app/script/ResourceFileJavaFileManager.java