docs: public static <O> DistanceQuery<O> getDistanceQuery(Database database, DistanceFunction<? super O> distanceFunction, Object... hints) {
      final Relation<O> objectQuery = database.getRelation(distanceFunction.getInputTypeRestriction(), hints);
      return database.getDistanceQuery(objectQuery, distanceFunction, hints);
    }