@Override
    public @NotNull Integer weigh(@NotNull LookupElement element) {
      final String name = getLookupObjectName(element.getObject());
      return -getNameEndMatchingDegree(name, myExpectedTypes);
    }
@Override
    public @NotNull Integer weigh(@NotNull LookupElement element)