private static @Nullable JsonSchemaObject resolveSchemaByReference(@NotNull JsonSchemaService service,
                                                                     @NotNull VirtualFile schemaFile,
                                                                     @NotNull String schemaId) {
    final VirtualFile refFile = service.findSchemaFileByReference(schemaId, schemaFile);
    if (refFile == null) {
      LOG.debug(String.format("Schema file not found by reference: '%s' from %s", schemaId, schemaFile.getPath()));
      return null;
    }
    var refSchema = downloadAndParseRemoteSchema(service, refFile);
    if (refSchema == null) {
      LOG.debug(String.format("Schema object not found by reference: '%s' from %s", schemaId, schemaFile.getPath()));
    }
    return refSchema;
  }
private static @Nullable JsonSchemaObject resolveSchemaByReference(@NotNull JsonSchemaService service,
                                                                     @NotNull VirtualFile schemaFile,
                                                                     @NotNull String schemaId)