@SuppressWarnings("unchecked")
    public static <T> Set<T> minus(Set<T> set, T...toRemove) {
        Set<T> res = new HashSet<>(set);
        for (T t : toRemove)
            res.remove(t);
        return res;
    }
@param set Source set.
@param toRemove Elements to remove.
@return {@code set} copy without {@code toRemove} elements.
@param <T> Element type.
tools/src/main/java/org/apache/kafka/tools/ToolsUtils.java