@Override
    public @NotNull Integer weigh(@NotNull LookupElement element) {
      TypedLookupItem item = element.as(TypedLookupItem.class);
      return item != null && element.getObject() instanceof PsiMethod && PsiTypes.voidType().equals(item.getType()) ? 1 : 0;
    }
@Override
    public @NotNull Integer weigh(@NotNull LookupElement element)