List<String> (Map<String, String> parameters) { String joined = parameters.get("projects"); if (StringUtil.isEmptyOrSpaces(joined)) { return Collections.emptyList(); } List<String> result = new ArrayList<>(); for (String project : joined.split("&&")) { if (StringUtil.isEmptyOrSpaces(project)) { continue; } result.add(project); } return result; }