MyReader () { return (element, object, queue, virtualFile) -> { if (element.isObject()) { object.setDefault(enqueue(queue, new JsonSchemaObject(virtualFile, getNewPointer("default", object.getPointer())), element)); } else if (element.isStringLiteral()) { object.setDefault(StringUtil.unquoteString(element.getDelegate().getText())); } else if (element.isNumberLiteral()) { object.setDefault(getNumber(element)); } else if (element.isBooleanLiteral()) { object.setDefault(getBoolean(element)); } }; }