public boolean addStylesheet(@Nonnull URL stylesheetUrl) {
		// TODO: For 'file:/...' just add that url directly by mapping the file to a 'Path'
		//   String protocol = stylesheetUrl.getProtocol();

		// Extract content from URL
		byte[] stylesheetContents;
		String tempStylesheetName;
		try {
			stylesheetContents = Streams.readStream(stylesheetUrl.openStream());
			tempStylesheetName = Hashing.sha256().hashBytes(stylesheetContents) + ".css";
		} catch (IOException ex) {
			logger.error("Failed reading stylesheet from URL: {}", stylesheetUrl, ex);
			return false;
		}

		// Write to temp directory
		Path destinationPath;
		try {
			destinationPath = directoriesConfig.getTempDirectory().resolve(tempStylesheetName);
			Files.write(destinationPath, stylesheetContents);
		} catch (IOException ex) {
			logger.error("Failed reading stylesheet from URL: {}", stylesheetUrl, ex);
			return false;
		}

		// Add the temp path copy to the stylesheets URI list.
		addStylesheet(destinationPath);
		return true;
	}
Adds a stylesheet from the given url.

@param stylesheetUrl
		URL to the stylesheet.

@return {@code false} when the content from the URL could not be loaded.
{@code true} the stylesheet was added successfully.
recaf-ui/src/main/java/software/coley/recaf/services/window/WindowStyling.java