private void save(Set<String> rules, File storage) {
		String newsources = getJSon(rules);
		try {
			Util.writeString(storage.toPath(), newsources);
		} catch (IOException e) {
			throw new ExitException(2, "Error when writing to " + storage, e);
		}
		trustedSources = rules.toArray(new String[0]);
	}
in place reverse of array

@param array array to reverse
@param <T>
@return reversed array
src/main/java/dev/jbang/net/TrustedSources.java