public void remove(List<String> trust, File storage) {

		Util.infoMsg("Removing permanent trust: " + trust);

		Set<String> newrules = new LinkedHashSet<>(Arrays.asList(trustedSources));

		if (newrules.removeAll(trust)) {
			trustedSources = newrules.toArray(new String[0]);
			save(newrules, storage);
		} else {
			Util.warnMsg("Not found in trusted source(s). No changes made.");
		}

	}
in place reverse of array

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