public static @NotNull <T> T castToRemoteNotNull(Object object, Class<T> clazz) {
    return Objects.requireNonNull(castToRemote(object, clazz));
  }
public static @NotNull <T> T castToRemoteNotNull(Object object, Class<T> clazz)