code: private static Enumeration<NetworkInterface> cloneInterfaces(List<NetworkInterface> interfaces) {
         return Collections.enumeration(new ArrayList<>(interfaces));
     }
docs: Method cloning list of strings (used for network interfaces)
  @param interfaces
  @return