private static File getEnvFile(String name, boolean required) throws FileNotFoundException {
		String path = System.getenv(name);
		if (path == null || path.isBlank()) {
			if (required) {
				throw new FileNotFoundException(
					"Required environment variable \"%s\" is not set!".formatted(name));
			}
			return null;
		}
		path = path.trim();
		File file = new File(path);
		if (!file.isAbsolute()) {
			throw new FileNotFoundException(
				"Environment variable \"%s\" is not an absolute path: \"%s\"".formatted(name,
					path));
		}
		return file;
	}
Gets the absolute form {@link File} value of the environment variable by the given name

@param name The environment variable name
@param required True if the given environment variable is required to be set; otherwise,
  false
@return The absolute form {@link File} value of the environment variable by the given name,
  or null if it isn't set
@throws FileNotFoundException if the property value was not an absolute path, or if it is
  required and not set
Ghidra/Framework/Utility/src/main/java/utility/application/ApplicationUtilities.java