private String getContentType(URL url) throws IllegalArgumentException {
		ContentTypeQueryTask task = new ContentTypeQueryTask(url);
		TaskLauncher.launch(task); // blocking task
		return task.getContentType();
	}
Implementation of service used to manipulate tools.
Ghidra/Framework/Project/src/main/java/ghidra/framework/project/tool/ToolServicesImpl.java