public static File getResourceFile(String filename) {
		URL url = getResource(filename);
		if (url == null || !"file".equals(url.getProtocol())) {
			return null;
		}

		try {
			URI uri = new URI(url.toExternalForm());
			return new File(uri);
		}
		catch (URISyntaxException e) {
			throw new RuntimeException("Can not find resource " + filename);
		}
	}
Locates a File resource by the given name

@param filename the filename
@return the File for the given resource; null if there is no such file
Ghidra/Framework/Gui/src/main/java/resources/ResourceManager.java