void (@NotNull Logger logger, @NotNull String json) { if (logger.isDebugEnabled()) { try { Gson gson = new GsonBuilder().setPrettyPrinting().create(); logger.debug("\n" + gson.toJson(gson.fromJson(json, JsonElement.class))); } catch (JsonSyntaxException e) { logger.debug("Malformed JSON\n" + json); } } }