docs: public static <O> SimilarityQuery<O> getSimilarityQuery(Database database, SimilarityFunction<? super O> similarityFunction, Object... hints) {
      final Relation<O> objectQuery = database.getRelation(similarityFunction.getInputTypeRestriction(), hints);
      return database.getSimilarityQuery(objectQuery, similarityFunction, hints);
    }