JsonSchemaObject (@NotNull JsonSchemaObject base, @NotNull JsonSchemaObject other, @NotNull JsonSchemaObject pointTo) { final JsonSchemaObject object = new JsonSchemaObject(pointTo.myRawFile, pointTo.myFileUrl, pointTo.getPointer()); object.mergeValues(other); object.mergeValues(base); object.setRef(other.getRef()); return object; }