@Override
	public String inferBinaryName(Location location, JavaFileObject file) {
		if (file instanceof ResourceFileJavaFileObject) {
			String name = file.getName();
			int lastIndexOf = name.lastIndexOf(".java");
			if (lastIndexOf >= 0) {
				String path = name.substring(0, lastIndexOf);
				path = path.replace('/', '.').replace('\\', '.');
				return path;
			}
			throw new AssertException("Expected name to end in .java but got " + name);
		}
		String inferBinaryName = fileManager.inferBinaryName(location, file);
		return inferBinaryName;
	}
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