public static void initializeFromContext(Class<?> context) {
		if (instance != null) {
			return;
		}

		try {
			CodeSource codeSource = context.getProtectionDomain().getCodeSource();
			File selfFile = new File(codeSource.getLocation().toURI().getPath());
			instance = new SelfReferenceUtil(selfFile);
		} catch (URISyntaxException e) {
			logger.error("Failed to resolve self reference", e);
		}
	}
Initializes the self-reference util based on the {@link CodeSource} of the given class.

@param context
		Class to initialize from.

@see #getInstance()
recaf-core/src/main/java/software/coley/recaf/util/SelfReferenceUtil.java