private static @Nullable Value getField(@NotNull ObjectReference object, @NotNull String name) {
    Field field = object.referenceType().fieldByName(name);
    if (field == null) return null;
    return object.getValue(field);
  }
private static @Nullable Value getField(@NotNull ObjectReference object, @NotNull String name)