class JsonUtilForPnfCorrelationId {

    static List<String> parseJsonToGelAllPnfCorrelationId(String json) {
        if (json == null || json.isEmpty()) {
            return Collections.emptyList();
        }
        JsonElement je = new JsonParser().parse(json);
        JsonArray array = je.getAsJsonArray();
        List<String> list = new ArrayList<>();
        Spliterator<JsonElement> spliterator = array.spliterator();
        spliterator.forEachRemaining(jsonElement -> handleEscapedCharacters(jsonElement)
                .ifPresent(jsonObject -> getPnfCorrelationId(jsonObject)
                        .ifPresent(pnfCorrelationId -> list.add(pnfCorrelationId))));
        return list;
    }

    private  JsonUtilForPnfCorrelationId();

}