private void onScriptUpdated(@Nonnull Path path) {
		try {
			// Read updated script content from path.
			ScriptFile updated = read(path);

			// Replace old file wrapper with new wrapper.
			// Only do so if they are not equal. There are some odd situations where you will get duplicate
			// file-watcher events on the same file even if the contents are not modified.
			if (scriptFiles.removeIf(file -> path.equals(file.path()) && !file.equals(updated)))
				scriptFiles.add(updated);
		} catch (IOException ex) {
			logger.error("Could not load script from path: {}", path, ex);
		}
	}
@param path
		Path of file modified.
recaf-core/src/main/java/software/coley/recaf/services/script/ScriptManager.java