public @NotNull Function<@NotNull LookupElement, @Nullable StatisticsInfo> forLocation(final @NotNull CompletionLocation location) {
    return element -> serialize(element, location);
  }
public @NotNull Function<@NotNull LookupElement, @Nullable StatisticsInfo> forLocation(final @NotNull CompletionLocation location)