void (String platformCode, Iterable<String> pluginCodes) { myProductCode = platformCode != null? platformCode.toLowerCase(Locale.ENGLISH) : null; Set<String> codes = new HashSet<>(); for (String pluginCode : pluginCodes) { codes.add(pluginCode.toLowerCase(Locale.ENGLISH)); } myPluginCodes = codes.isEmpty()? Set.of() : Collections.unmodifiableSet(codes); }